Shaka Packager SDK
Loading...
Searching...
No Matches
continuity_counter.cc
1// Copyright 2016 Google LLC. 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
9namespace shaka {
10namespace media {
11namespace mp2t {
12
13ContinuityCounter::ContinuityCounter() {}
14ContinuityCounter::~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.