[libav-stable] matroskadec: use correct compression parameters for current track CodecPrivate

Aurelien Jacobs git at libav.org
Thu Nov 21 21:14:31 CET 2013


Module: libav
Branch: master
Commit: 8b516f154a0a08655cec2d13d12aadc58cae0b1c

Author:    Aurelien Jacobs <aurel at gnuage.org>
Committer: Anton Khirnov <anton at khirnov.net>
Date:      Sun Aug 21 16:03:13 2011 +0200

matroskadec: use correct compression parameters for current track CodecPrivate

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable at libav.org
Signed-off-by: Anton Khirnov <anton at khirnov.net>

---

 libavformat/matroskadec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 764dbf8..bcd7d1a 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1455,7 +1455,7 @@ static int matroska_read_header(AVFormatContext *s)
     for (i=0; i < matroska->tracks.nb_elem; i++) {
         MatroskaTrack *track = &tracks[i];
         enum AVCodecID codec_id = AV_CODEC_ID_NONE;
-        EbmlList *encodings_list = &tracks->encodings;
+        EbmlList *encodings_list = &track->encodings;
         MatroskaTrackEncoding *encodings = encodings_list->elem;
         uint8_t *extradata = NULL;
         int extradata_size = 0;



More information about the libav-stable mailing list