Commit 5d3f7838 authored by Marton Balint's avatar Marton Balint

avformat/mxfdec: only disallow seek on metadata streams

Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent f9e77586
...@@ -3447,7 +3447,7 @@ static int mxf_read_seek(AVFormatContext *s, int stream_index, int64_t sample_ti ...@@ -3447,7 +3447,7 @@ static int mxf_read_seek(AVFormatContext *s, int stream_index, int64_t sample_ti
MXFIndexTable *t; MXFIndexTable *t;
MXFTrack *source_track = st->priv_data; MXFTrack *source_track = st->priv_data;
if(st->codecpar->codec_type == AVMEDIA_TYPE_DATA) if (!source_track)
return 0; return 0;
/* if audio then truncate sample_time to EditRate */ /* if audio then truncate sample_time to EditRate */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment