avformat/mxfdec: only disallow seek on metadata streams
authorMarton Balint <cus@passwd.hu>
Wed, 30 May 2018 23:29:06 +0000 (01:29 +0200)
committerMarton Balint <cus@passwd.hu>
Fri, 8 Jun 2018 21:20:27 +0000 (23:20 +0200)
Signed-off-by: Marton Balint <cus@passwd.hu>
libavformat/mxfdec.c

index 3d8c8e2..e80ef62 100644 (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 */