aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-04 15:47:54 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-17 21:50:09 +0200
commit4f0d1af68ad352dbfcb079e52fd333622c274a5b (patch)
treece289d882fde8a9439d9d15a14f0e12b0bd3fa0b
parent7d9725187d1ac027e1659e014e78b73566e76b1d (diff)
downloadffmpeg-4f0d1af68ad352dbfcb079e52fd333622c274a5b.tar.gz
avformat/matroskadec: Use tracks[k]->stream instead of s->streams[k]
The later is not correct Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 5d309d309108684f742bbf5fc2393f1c519cda72) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/matroskadec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 662f02b26a..652ca8c176 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1929,8 +1929,8 @@ static int matroska_read_header(AVFormatContext *s)
snprintf(buf, sizeof(buf), "%s_%d",
ff_matroska_video_stereo_plane[planes[j].type], i);
for (k=0; k < matroska->tracks.nb_elem; k++)
- if (planes[j].uid == tracks[k].uid && s->streams[k]) {
- av_dict_set(&s->streams[k]->metadata,
+ if (planes[j].uid == tracks[k].uid && tracks[k].stream) {
+ av_dict_set(&tracks[k].stream->metadata,
"stereo_mode", buf, 0);
break;
}