[vlc-commits] demux: adaptive: missing es_format_Init

Francois Cartegnie git at videolan.org
Wed Jul 26 16:39:21 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jul 26 16:33:21 2017 +0200| [ecdb644390011a2836bb5da9abb9c37926d873dd] | committer: Francois Cartegnie

demux: adaptive: missing es_format_Init

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

 modules/demux/adaptive/plumbing/FakeESOut.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/adaptive/plumbing/FakeESOut.cpp b/modules/demux/adaptive/plumbing/FakeESOut.cpp
index 47976f2fe1..acc00c0520 100644
--- a/modules/demux/adaptive/plumbing/FakeESOut.cpp
+++ b/modules/demux/adaptive/plumbing/FakeESOut.cpp
@@ -91,6 +91,7 @@ void FakeESOut::setExtraInfoProvider( ExtraFMTInfoInterface *extra )
 FakeESOutID * FakeESOut::createNewID( const es_format_t *p_fmt )
 {
     es_format_t fmtcopy;
+    es_format_Init( &fmtcopy, p_fmt->i_cat, p_fmt->i_codec );
     es_format_Copy( &fmtcopy, p_fmt );
     fmtcopy.i_group = 0; /* Always ignore group for adaptive */
     fmtcopy.i_id = -1;



More information about the vlc-commits mailing list