[Ffmpeg-cvslog] r8523 - trunk/libavcodec/shorten.c

aurel subversion
Mon Mar 26 02:00:43 CEST 2007


Author: aurel
Date: Mon Mar 26 02:00:43 2007
New Revision: 8523

Modified:
   trunk/libavcodec/shorten.c

Log:
properly set *data_size when returning >= 0 values in shorten_decode_frame()
Original thread:
Date: Sat, 24 Mar 2007 04:04:53 +0100
Subject: [Ffmpeg-devel] Shorten file playback broken in SVN trunk


Modified: trunk/libavcodec/shorten.c
==============================================================================
--- trunk/libavcodec/shorten.c	(original)
+++ trunk/libavcodec/shorten.c	Mon Mar 26 02:00:43 2007
@@ -294,6 +294,7 @@ static int shorten_decode_frame(AVCodecC
 
         if(buf_size < s->max_framesize){
             //dprintf(avctx, "wanna more data ... %d\n", buf_size);
+            *data_size = 0;
             return input_buf_size;
         }
     }
@@ -471,6 +472,7 @@ static int shorten_decode_frame(AVCodecC
                 s->blocksize = get_uint(s, av_log2(s->blocksize));
                 break;
             case FN_QUIT:
+                *data_size = 0;
                 return buf_size;
                 break;
             default:




More information about the ffmpeg-cvslog mailing list