summaryrefslogtreecommitdiffstats
path: root/contrib/ffmpeg/A04-dca-frame-size.patch
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ffmpeg/A04-dca-frame-size.patch')
-rw-r--r--contrib/ffmpeg/A04-dca-frame-size.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/ffmpeg/A04-dca-frame-size.patch b/contrib/ffmpeg/A04-dca-frame-size.patch
new file mode 100644
index 000000000..5af1040b2
--- /dev/null
+++ b/contrib/ffmpeg/A04-dca-frame-size.patch
@@ -0,0 +1,12 @@
+diff --git a/libavcodec/dca.c b/libavcodec/dca.c
+index 68731c9..cf62c48 100644
+--- a/libavcodec/dca.c
++++ b/libavcodec/dca.c
+@@ -1650,6 +1650,7 @@ static int dca_decode_frame(AVCodecContext * avctx,
+ //set AVCodec values with parsed data
+ avctx->sample_rate = s->sample_rate;
+ avctx->bit_rate = s->bit_rate;
++ avctx->frame_size = s->sample_blocks * 32;
+
+ s->profile = FF_PROFILE_DTS;
+