Shaka Packager SDK
continuity_counter.cc
1 // Copyright 2016 Google Inc. All rights reserved.
2 //
3 // Use of this source code is governed by a BSD-style
4 // license that can be found in the LICENSE file or at
5 // https://developers.google.com/open-source/licenses/bsd
6 
7 #include "packager/media/formats/mp2t/continuity_counter.h"
8 
9 namespace shaka {
10 namespace media {
11 namespace mp2t {
12 
13 ContinuityCounter::ContinuityCounter() {}
14 ContinuityCounter::~ContinuityCounter() {}
15 
17  int ret = counter_;
18  ++counter_;
19  counter_ %= 16;
20  return ret;
21 }
22 
23 } // namespace mp2t
24 } // namespace media
25 } // namespace shaka
All the methods that are virtual are virtual for mocking.