Workaround invalid use reference counting of pictures
authorRafaël Carré <funman@videolan.org>
Tue, 27 May 2008 11:45:48 +0000 (13:45 +0200)
committerRafaël Carré <funman@videolan.org>
Tue, 27 May 2008 23:20:53 +0000 (01:20 +0200)
modules/codec/ffmpeg/scale.c

index a559dfb..d860e64 100644 (file)
@@ -311,7 +311,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
     p_pic_dst->b_progressive = p_pic->b_progressive;
     p_pic_dst->b_top_field_first = p_pic->b_top_field_first;
 
-    p_pic->pf_release( p_pic );
+    if( p_pic->pf_release )
+        p_pic->pf_release( p_pic );
     return p_pic_dst;
 }