matroskadec: use correct compression parameters for current track CodecPrivate
authorAurelien Jacobs <aurel@gnuage.org>
Sun, 21 Aug 2011 14:03:13 +0000 (16:03 +0200)
committerAnton Khirnov <anton@khirnov.net>
Thu, 21 Nov 2013 19:54:55 +0000 (20:54 +0100)
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/matroskadec.c

index 764dbf8..bcd7d1a 100644 (file)
@@ -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;