summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorRodeo314 <[email protected]>2015-12-08 16:53:23 +0100
committerRodeo314 <[email protected]>2015-12-08 16:53:23 +0100
commit38ae11fabe2482581e9e04c92d1dd4c541142f83 (patch)
treea6bd5497a37463f8948d08d105131ccac9acecdd /contrib
parentc8e065770c35ed4fdd2e70ac0aa9b52d3d162222 (diff)
parentc6fd68fbc5c3e8775b485c8c3e10eb359173ee90 (diff)
Merge pull request #41 from Rodeo314/auxdata2
[merge] libav: remove a pointless check in the DTS decoder.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ffmpeg/A13-dcadec-false-overread.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/ffmpeg/A13-dcadec-false-overread.patch b/contrib/ffmpeg/A13-dcadec-false-overread.patch
new file mode 100644
index 000000000..50ca00169
--- /dev/null
+++ b/contrib/ffmpeg/A13-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);