From 8b516f154a0a08655cec2d13d12aadc58cae0b1c Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Sun, 21 Aug 2011 16:03:13 +0200 Subject: [PATCH] matroskadec: use correct compression parameters for current track CodecPrivate Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC:libav-stable@libav.org Signed-off-by: Anton Khirnov --- libavformat/matroskadec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 764dbf82b9..bcd7d1acc2 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;