]> git.sesse.net Git - vlc/commitdiff
Cosmetics.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 11 Jul 2010 17:01:51 +0000 (19:01 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 11 Jul 2010 17:56:21 +0000 (19:56 +0200)
modules/video_filter/deinterlace.c

index 11a0c4947882274530a5f773df8b5961d948328d..13b4e0614a73baa968b040e575ae3a08d476d904 100644 (file)
@@ -1567,9 +1567,7 @@ static picture_t *Deinterlace( filter_t *p_filter, picture_t *p_pic )
             RenderLinear( p_filter, pp_outpic[1], p_pic, p_pic->b_top_field_first );
 #endif
             msg_Err( p_filter, "doubling the frame rate is not supported yet" );
-            picture_Release( p_pic_dst );
-            picture_Release( p_pic );
-            return NULL;
+            goto drop;
 
         case DEINTERLACE_MEAN:
             RenderMean( p_filter, p_pic_dst, p_pic );
@@ -1585,26 +1583,25 @@ static picture_t *Deinterlace( filter_t *p_filter, picture_t *p_pic )
 
         case DEINTERLACE_YADIF:
             if( RenderYadif( p_filter, p_pic_dst, p_pic, 0, 0 ) )
-            {
-                picture_Release( p_pic_dst );
-                picture_Release( p_pic );
-                return NULL;
-            }
+                goto drop;
             break;
 
         case DEINTERLACE_YADIF2X:
             msg_Err( p_filter, "doubling the frame rate is not supported yet" );
             //RenderYadif( p_vout, pp_outpic[0], p_pic, 0, !p_pic->b_top_field_first );
             //RenderYadif( p_vout, pp_outpic[1], p_pic, 1, p_pic->b_top_field_first );
-            picture_Release( p_pic_dst );
-            picture_Release( p_pic );
-            return NULL;
+            goto drop;
     }
 
     p_pic_dst->b_progressive = true;
 
     picture_Release( p_pic );
     return p_pic_dst;
+
+drop:
+    picture_Release( p_pic_dst );
+    picture_Release( p_pic );
+    return NULL;
 }
 
 static void Flush( filter_t *p_filter )