[vlc-commits] demux:ogg: no need to change the es_format_t before a copy

Steve Lhomme git at videolan.org
Fri Jul 21 13:25:49 CEST 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Mon Jul 17 09:50:19 2017 +0200| [f32a5d8a2dc304f9e536502df8835469ed8f0a1d] | committer: Jean-Baptiste Kempf

demux:ogg: no need to change the es_format_t before a copy

But we do need to clean the previous value before a copy.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/demux/ogg.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index 896f34615b..1516283eb3 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -2117,8 +2117,7 @@ static void Ogg_CreateES( demux_t *p_demux )
                 p_stream->b_reinit = false;
                 p_stream->b_initializing = false;
                 p_stream->i_pre_skip = 0;
-                es_format_Change( &p_stream->fmt_old, p_old_stream->fmt.i_cat,
-                                                      p_old_stream->fmt.i_codec );
+                es_format_Clean( &p_stream->fmt_old );
                 es_format_Copy( &p_stream->fmt_old, &p_old_stream->fmt );
                 bool b_resetdecoder = Ogg_LogicalStreamResetEsFormat( p_demux, p_stream );
 



More information about the vlc-commits mailing list