[FFmpeg-cvslog] r21040 - trunk/ffmpeg.c

michael subversion
Thu Jan 7 01:47:23 CET 2010


Author: michael
Date: Thu Jan  7 01:47:23 2010
New Revision: 21040

Log:
Move the definitions of data_buf and data_size closer to where they are used.

Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	Thu Jan  7 00:15:33 2010	(r21039)
+++ trunk/ffmpeg.c	Thu Jan  7 01:47:23 2010	(r21040)
@@ -1272,8 +1272,7 @@ static int output_packet(AVInputStream *
     AVFormatContext *os;
     AVOutputStream *ost;
     int ret, i;
-    uint8_t *data_buf;
-    int data_size, got_picture;
+    int got_picture;
     AVFrame picture;
     void *buffer_to_free;
     static unsigned int samples_size= 0;
@@ -1300,6 +1299,8 @@ static int output_packet(AVInputStream *
 
     //while we have more to decode or while the decoder did output something on EOF
     while (avpkt.size > 0 || (!pkt && ist->next_pts != ist->pts)) {
+        uint8_t *data_buf;
+        int data_size;
     handle_eof:
         ist->pts= ist->next_pts;
 



More information about the ffmpeg-cvslog mailing list