diff dv.c @ 2453:f67b63ed036d libavcodec

avoid buf_size == 0 checks in every decoder
author michael
date Sun, 23 Jan 2005 18:09:06 +0000
parents 18b8b2dcc037
children 5e24800ab329
line wrap: on
line diff
--- a/dv.c	Sun Jan 23 17:59:01 2005 +0000
+++ b/dv.c	Sun Jan 23 18:09:06 2005 +0000
@@ -888,10 +888,6 @@
 {
     DVVideoContext *s = avctx->priv_data;
   
-    /* 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)
         return -1; /* NOTE: we only accept several full frames */