1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

avformat/mxfdec: only disallow seek on metadata streams

Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Marton Balint 2018-05-31 01:29:06 +02:00
parent f9e77586cb
commit 5d3f78383e

View File

@ -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 */