diff utils.c @ 2028:141a9539e270 libavcodec

data_size = 0 cleanup
author michael
date Fri, 21 May 2004 14:37:16 +0000
parents 85e547a18d87
children 0817ee1f07e5
line wrap: on
line diff
--- a/utils.c	Fri May 21 14:29:25 2004 +0000
+++ b/utils.c	Fri May 21 14:37:16 2004 +0000
@@ -488,6 +488,7 @@
 {
     int ret;
     
+    *got_picture_ptr= 0;
     ret = avctx->codec->decode(avctx, picture, got_picture_ptr, 
                                buf, buf_size);
 
@@ -508,6 +509,7 @@
 {
     int ret;
 
+    *frame_size_ptr= 0;
     ret = avctx->codec->decode(avctx, samples, frame_size_ptr, 
                                buf, buf_size);
     avctx->frame_number++;