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
1 changed files with 1 additions and 1 deletions

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