diff dv.c @ 1726:88056e077c7f libavcodec

10000l
author michael
date Sun, 04 Jan 2004 19:49:57 +0000
parents 806afb8e9085
children 45a1592dadca
line wrap: on
line diff
--- a/dv.c	Sun Jan 04 17:43:28 2004 +0000
+++ b/dv.c	Sun Jan 04 19:49:57 2004 +0000
@@ -921,6 +921,11 @@
     DVVideoDecodeContext *s = avctx->priv_data;
     int ds, vs;
     const uint16_t *mb_pos_ptr;
+  
+    *data_size=0;
+    /* special case for last picture */
+    if(buf_size==0)
+        return 0;
     
     s->sys = dv_frame_profile(buf);
     if (!s->sys || buf_size < s->sys->frame_size)