diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-12-09 20:56:42 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-12-09 20:56:42 +0000 |
| commit | 14405a514581605497d88fb72c2e4fb45b359d4d (patch) | |
| tree | f42d45be9e0cfca94be3e5ca49a1699a66856d56 /src/lib | |
| parent | 6e5e215ebadeb1ec81052f5d67a7da7457e33fa2 (diff) | |
Forward-port DCA footer fix from master.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/ffmpeg.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/ffmpeg.cc b/src/lib/ffmpeg.cc index 4fe1c0448..c39ad8aab 100644 --- a/src/lib/ffmpeg.cc +++ b/src/lib/ffmpeg.cc @@ -152,7 +152,15 @@ FFmpeg::setup_decoders () AVCodec* codec = avcodec_find_decoder (context->codec_id); if (codec) { - if (avcodec_open2 (context, codec, 0) < 0) { + + /* This option disables decoding of DCA frame footers in our patched version + of FFmpeg. I believe these footers are of no use to us, and they can cause + problems when FFmpeg fails to decode them (mantis #352). + */ + AVDictionary* options = 0; + av_dict_set (&options, "disable_footer", "1", 0); + + if (avcodec_open2 (context, codec, &options) < 0) { throw DecodeError (N_("could not open decoder")); } } |
