actually return bytes read
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sun, 25 Mar 2007 00:16:30 +0000 (00:16 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sun, 25 Mar 2007 00:16:30 +0000 (00:16 +0000)
Originally committed as revision 8504 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/dnxhddec.c

index 44aae5a8918a216aa608535ae73712ede1d7d213..224439c47b79e07edd3083a5fb6c9ed75e3a157e 100644 (file)
@@ -340,7 +340,7 @@ static int dnxhd_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
 
     *picture = ctx->picture;
     *data_size = sizeof(AVPicture);
 
     *picture = ctx->picture;
     *data_size = sizeof(AVPicture);
-    return 0;
+    return buf_size;
 }
 
 static int dnxhd_decode_close(AVCodecContext *avctx)
 }
 
 static int dnxhd_decode_close(AVCodecContext *avctx)