mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavf: don't select an attached picture as default stream for seeking.
This commit is contained in:
parent
251422982b
commit
cd9a3c3512
@ -1307,7 +1307,8 @@ int av_find_default_stream_index(AVFormatContext *s)
|
||||
return -1;
|
||||
for(i = 0; i < s->nb_streams; i++) {
|
||||
st = s->streams[i];
|
||||
if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO) {
|
||||
if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO &&
|
||||
!(st->disposition & AV_DISPOSITION_ATTACHED_PIC)) {
|
||||
return i;
|
||||
}
|
||||
if (first_audio_index < 0 && st->codec->codec_type == AVMEDIA_TYPE_AUDIO)
|
||||
|
Loading…
Reference in New Issue
Block a user