cc_stream.h 416 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include "subtitle_stream.h"

namespace ffmpeg {

/**
 * Class uses FFMPEG library to decode one closed captions stream.
 */
class CCStream : public SubtitleStream {
 public:
  CCStream(
      AVFormatContext* inputCtx,
      int index,
      bool convertPtsToWallTime,
      const SubtitleFormat& format);

 private:
  AVCodec* findCodec(AVCodecParameters* params) override;
};

} // namespace ffmpeg