[FFmpeg-cvslog] r17794 - trunk/libavcodec/flacdec.c

jbr subversion
Wed Mar 4 01:21:46 CET 2009


Author: jbr
Date: Wed Mar  4 01:21:46 2009
New Revision: 17794

Log:
flacdec: Allocate buffers right after STREAMINFO is parsed.

Modified:
   trunk/libavcodec/flacdec.c

Modified: trunk/libavcodec/flacdec.c
==============================================================================
--- trunk/libavcodec/flacdec.c	Wed Mar  4 00:53:29 2009	(r17793)
+++ trunk/libavcodec/flacdec.c	Wed Mar  4 01:21:46 2009	(r17794)
@@ -250,6 +250,7 @@ static int metadata_parse(FLACContext *s
                     if (!s->got_streaminfo) {
                         ff_flac_parse_streaminfo(s->avctx, (FLACStreaminfo *)s,
                                                  s->gb.buffer+get_bits_count(&s->gb)/8);
+                        allocate_buffers(s);
                         s->got_streaminfo = 1;
                     }
                 default:
@@ -259,8 +260,6 @@ static int metadata_parse(FLACContext *s
             }
         } while (!metadata_last);
 
-        if (s->got_streaminfo)
-            allocate_buffers(s);
         return 1;
     }
     return 0;




More information about the ffmpeg-cvslog mailing list