changeset 7158:bfbb2df9963a libavcodec

set frame_size in libfaad decoder
author bcoudurier
date Sat, 28 Jun 2008 19:41:18 +0000
parents b76ee34ea184
children 7767dc2b0ee6
files libfaad.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libfaad.c	Sat Jun 28 18:30:50 2008 +0000
+++ b/libfaad.c	Sat Jun 28 19:41:18 2008 +0000
@@ -196,7 +196,8 @@
                s->faacDecGetErrorMessage(frame_info.error));
         return -1;
     }
-
+    if (!avctx->frame_size)
+        avctx->frame_size = frame_info.samples/avctx->channels;
     frame_info.samples *= s->sample_size;
     memcpy(data, out, frame_info.samples); // CHECKME - can we cheat this one