[vlc-commits] avcodec video dec: remove useless assignement in destructor

Rafaël Carré git at videolan.org
Tue Jun 4 20:05:19 CEST 2013


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Mon May 27 09:19:02 2013 +0200| [05e1f72875c3d066da936f4bc25a16cea6ef6aca] | committer: Rémi Denis-Courmont

avcodec video dec: remove useless assignement in destructor

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 modules/codec/avcodec/video.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index c9d7ba0..3a967b8 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -767,13 +767,12 @@ void EndVideoDec( decoder_t *p_dec )
 
     wait_mt( p_sys );
 
-    if( p_sys->p_ff_pic ) av_free( p_sys->p_ff_pic );
+    if( p_sys->p_ff_pic )
+        av_free( p_sys->p_ff_pic );
 
     if( p_sys->p_va )
-    {
         vlc_va_Delete( p_sys->p_va );
-        p_sys->p_va = NULL;
-    }
+
     vlc_sem_destroy( &p_sys->sem_mt );
 }
 



More information about the vlc-commits mailing list