[vlc-devel] commit: Workaround invalid use reference counting of pictures ( Rafaël Carré )

git version control git at videolan.org
Wed May 28 01:19:23 CEST 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Tue May 27 13:45:48 2008 +0200| [270e081243fdd412e2391e7aba1cfca96f5b148f]

Workaround invalid use reference counting of pictures

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=270e081243fdd412e2391e7aba1cfca96f5b148f
---

 modules/codec/ffmpeg/scale.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/codec/ffmpeg/scale.c b/modules/codec/ffmpeg/scale.c
index a559dfb..d860e64 100644
--- a/modules/codec/ffmpeg/scale.c
+++ b/modules/codec/ffmpeg/scale.c
@@ -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;
 }
 




More information about the vlc-devel mailing list