提交 5d3f7838 编写于 作者: M Marton Balint

avformat/mxfdec: only disallow seek on metadata streams

Signed-off-by: NMarton Balint <cus@passwd.hu>
上级 f9e77586
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册