changeset 1726:88056e077c7f libavcodec

10000l
author michael
date Sun, 04 Jan 2004 19:49:57 +0000
parents 4bc18915485a
children 1ed3664b3523
files dv.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
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)