FFmpegDecoder::FFmpegDecoder (shared_ptr<const Film> f, shared_ptr<const FFmpegContent> c, bool video, bool audio)
: Decoder (f)
, VideoDecoder (f, c)
- , AudioDecoder (f)
+ , AudioDecoder (f, c)
, SubtitleDecoder (f)
- , FFmpeg (c)
+ , FFmpeg (c, false)
, _subtitle_codec_context (0)
, _subtitle_codec (0)
, _decode_video (video)
}
if (_packet.stream_index != _video_stream) {
+ av_free_packet (&_packet);
continue;
}