Merge remote-tracking branch 'qatar/master'
* qatar/master: dxa: remove useless code lavf: don't select an attached picture as default stream for seeking. avconv: remove pointless checks. avconv: check for get_filtered_frame() failure. avconv: remove a pointless check. swscale: convert hscale() to use named arguments. x86inc: add *mp named argument support to DEFINE_ARGS. swscale: convert hscale to cpuflags(). Conflicts: ffmpeg.c libswscale/x86/scale.asm Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1399,7 +1399,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)
|
||||
|
Reference in New Issue
Block a user