diff options
author | Marton Balint | 2018-05-31 01:29:06 +0200 |
---|---|---|
committer | Marton Balint | 2018-06-08 23:20:27 +0200 |
commit | 5d3f78383e0e20cdf50a74a78f6174410c1fb564 (patch) | |
tree | 1d8aac7719626d5cd4d8d9517cd89d836b242b9e /libavformat/mxfdec.c | |
parent | f9e77586cb75bb99a9936d01ae12a53e7d05a1aa (diff) |
avformat/mxfdec: only disallow seek on metadata streams
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/mxfdec.c')
-rw-r--r-- | libavformat/mxfdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 3d8c8e204c..e80ef62d57 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -3447,7 +3447,7 @@ static int mxf_read_seek(AVFormatContext *s, int stream_index, int64_t sample_ti MXFIndexTable *t; MXFTrack *source_track = st->priv_data; - if(st->codecpar->codec_type == AVMEDIA_TYPE_DATA) + if (!source_track) return 0; /* if audio then truncate sample_time to EditRate */ |