]> granicus.if.org Git - handbrake/commitdiff
stream: don't treat attached artwork as valid video tracks, which they aren't.
authorRodeo <tdskywalker@gmail.com>
Thu, 5 Dec 2013 19:58:36 +0000 (19:58 +0000)
committerRodeo <tdskywalker@gmail.com>
Thu, 5 Dec 2013 19:58:36 +0000 (19:58 +0000)
Fortunately, there's a flag for that.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5921 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/stream.c

index 936637147d01b9a2106c3fce39914101fcedc060..1cb45fcad9a59e2e806992026207665949687bdd 100644 (file)
@@ -5553,6 +5553,7 @@ static hb_title_t *ffmpeg_title_scan( hb_stream_t *stream, hb_title_t *title )
     for (i = 0; i < ic->nb_streams; ++i )
     {
         if ( ic->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO &&
+           !(ic->streams[i]->disposition & AV_DISPOSITION_ATTACHED_PIC) &&
              avcodec_find_decoder( ic->streams[i]->codec->codec_id ) &&
              title->video_codec == 0 )
         {