diff options
author | Rodeo314 <[email protected]> | 2015-12-08 16:49:49 +0100 |
---|---|---|
committer | Rodeo314 <[email protected]> | 2015-12-08 16:49:49 +0100 |
commit | 5ab406a4e3e6ab0a4d92a8810a6e1d4e0822e142 (patch) | |
tree | 95671398d1f14a1392af87e4895381d546e2e50e | |
parent | ca69335f3ba0cea084b5d8bd2e858d7862f9a6c6 (diff) | |
parent | f73a58dfd617103fa5fcc9530ff1079669d96d71 (diff) |
Merge pull request #40 from Rodeo314/auxdata
libav: remove a pointless check in the DTS decoder.
-rw-r--r-- | contrib/ffmpeg/A10-dcadec-false-overread.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/ffmpeg/A10-dcadec-false-overread.patch b/contrib/ffmpeg/A10-dcadec-false-overread.patch new file mode 100644 index 000000000..50ca00169 --- /dev/null +++ b/contrib/ffmpeg/A10-dcadec-false-overread.patch @@ -0,0 +1,23 @@ +diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c +index e988e94..a72195e 100644 +--- a/libavcodec/dcadec.c ++++ b/libavcodec/dcadec.c +@@ -1359,12 +1359,12 @@ static int dca_subframe_footer(DCAContext *s, int base_channel) + align_get_bits(&s->gb); // byte align + skip_bits(&s->gb, 16); // nAUXCRC16 + +- // additional data (reserved, cf. ETSI TS 102 114 V1.4.1) +- if ((reserved = (aux_data_end - get_bits_count(&s->gb))) < 0) { +- av_log(s->avctx, AV_LOG_ERROR, +- "Overread auxiliary data by %d bits\n", -reserved); +- return AVERROR_INVALIDDATA; +- } else if (reserved) { ++ /* ++ * additional data (reserved, cf. ETSI TS 102 114 V1.4.1) ++ * ++ * Note: don't check for overreads, aux_data_count can't be trusted. ++ */ ++ if ((reserved = (aux_data_end - get_bits_count(&s->gb))) > 0) { + avpriv_request_sample(s->avctx, + "Core auxiliary data reserved content"); + skip_bits_long(&s->gb, reserved); |