avformat/mxfdec: only disallow seek on metadata streams

Signed-off-by: Marton Balint <cus@passwd.hu>
pull/288/head
Marton Balint 7 years ago
parent f9e77586cb
commit 5d3f78383e
  1. 2
      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 */

Loading…
Cancel
Save