X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fffmpeg_decoder.cc;h=be32475377da2c851647bc4ea8f247218c9d24f5;hb=9e1343fb30df204811e80bfd1387574b9d383a09;hp=8da607e7eb62861812d035d88461f39fc83c1bcd;hpb=373f010a7f04add1f49169cbaa60cb7ae5f508d4;p=dcpomatic.git diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index 8da607e7e..be3247537 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -61,9 +61,9 @@ using libdcp::Size; FFmpegDecoder::FFmpegDecoder (shared_ptr f, shared_ptr 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) @@ -339,6 +339,7 @@ FFmpegDecoder::seek (VideoContent::Frame frame, bool accurate) } if (_packet.stream_index != _video_stream) { + av_free_packet (&_packet); continue; }