aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2014-10-18 15:26:26 +0200
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2014-11-22 14:06:48 +0100
commit79be253635fc194b635fc18fe613d0b3dbaba613 (patch)
tree4f28276e390bbeef61ad9b673733577e59acaef3
parent3bedd72a9ec9cdc51695e7952fd45fa5731037c1 (diff)
downloadffmpeg-79be253635fc194b635fc18fe613d0b3dbaba613.tar.gz
mxfdec: minor simplification.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
-rw-r--r--libavformat/mxfdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index cc740b5a81..37d0fae796 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -2625,7 +2625,7 @@ static int mxf_read_packet_old(AVFormatContext *s, AVPacket *pkt)
pkt->stream_index = index;
pkt->pos = klv.offset;
- codec = s->streams[index]->codec;
+ codec = st->codec;
if (codec->codec_type == AVMEDIA_TYPE_VIDEO && next_ofs >= 0) {
/* mxf->current_edit_unit good - see if we have an