[vlc-commits] codec: avcodec: fix fmt cleaning

Francois Cartegnie git at videolan.org
Tue Aug 29 14:03:31 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Aug 29 11:38:21 2017 +0200| [68bf49dd70464d4ca6939ab1147b708006525aa4] | committer: Francois Cartegnie

codec: avcodec: fix fmt cleaning

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

 modules/demux/avformat/demux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index 22fa9aae5a..c46ecb5d23 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -614,11 +614,11 @@ int OpenDemux( vlc_object_t *p_this )
             es = es_out_Add( p_demux->out, &es_fmt );
             if( s->disposition & AV_DISPOSITION_DEFAULT )
                 es_out_Control( p_demux->out, ES_OUT_SET_ES_DEFAULT, es );
-            es_format_Clean( &es_fmt );
 
             msg_Dbg( p_demux, "adding es: %s codec = %4.4s (%d)",
                      psz_type, (char*)&fcc, cp->codec_id  );
         }
+        es_format_Clean( &es_fmt );
         TAB_APPEND( p_sys->i_tk, p_sys->tk, es );
     }
     p_sys->tk_pcr = xcalloc( p_sys->i_tk, sizeof(*p_sys->tk_pcr) );



More information about the vlc-commits mailing list