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

Michael Niedermayer git at videolan.org
Thu May 21 21:25:53 CEST 2015


ffmpeg | branch: release/2.5 | Michael Niedermayer <michaelni at gmx.at> | Mon May  4 15:47:54 2015 +0200| [d8bfa4bb94a6613e1b2066be06d0706b1170cb27] | committer: Michael Niedermayer

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

The later is not correct

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 5d309d309108684f742bbf5fc2393f1c519cda72)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d8bfa4bb94a6613e1b2066be06d0706b1170cb27
---

 libavformat/matroskadec.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 2038941..8dc8428 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1948,8 +1948,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;
                     }



More information about the ffmpeg-cvslog mailing list