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:
parent
f9e77586cb
commit
5d3f78383e
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user