diff libfaad.c @ 7158:bfbb2df9963a libavcodec

set frame_size in libfaad decoder
author bcoudurier
date Sat, 28 Jun 2008 19:41:18 +0000
parents e943e1409077
children 85ab7655ad4d
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