cc_stream.h 468 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
23
24
// Copyright 2004-present Facebook. All Rights Reserved.

#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(AVCodecContext* ctx) override;
};

} // namespace ffmpeg