Commit 5d309d30 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/matroskadec: Use tracks[k]->stream instead of s->streams[k]

The later is not correct
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e5454065
......@@ -2012,8 +2012,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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment