File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,9 @@ extern "C" {
9
9
10
10
#define TAG " FFMpegVideoDecoder"
11
11
12
- DecoderVideo::DecoderVideo (AVCodecContext* codec_ctx ,
13
- struct DecoderVideoConfig * config) : IDecoder(NULL )
12
+ DecoderVideo::DecoderVideo (AVStream* stream ,
13
+ struct DecoderVideoConfig * config) : IDecoder(stream )
14
14
{
15
- mCodecCtx = codec_ctx;
16
15
mConfig = config;
17
16
}
18
17
Original file line number Diff line number Diff line change @@ -8,13 +8,12 @@ struct DecoderVideoConfig
8
8
int width;
9
9
int height;
10
10
struct SwsContext * img_convert_ctx;
11
- AVFrame* frame;
12
11
};
13
12
14
13
class DecoderVideo : public IDecoder
15
14
{
16
15
public:
17
- DecoderVideo (AVCodecContext * codec_ctx ,
16
+ DecoderVideo (AVStream * stream ,
18
17
struct DecoderVideoConfig * config);
19
18
20
19
~DecoderVideo ();
You can’t perform that action at this time.
0 commit comments