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-01 23:25:22 +0200
commitf9f1c50b41bfd42b14c11fcbf43ecc1303da3a86 (patch)
tree6edeb404a7e5bbaad01bd9a0c6e0c2b02c6d24bc
parent84cc40cbe154ecc7ad460b879d39ad9df62957a6 (diff)
downloadffmpeg-f9f1c50b41bfd42b14c11fcbf43ecc1303da3a86.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 7618284d8c..21b000252c 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1942,8 +1942,8 @@ static int matroska_parse_tracks(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;
}