avformat/movenc: Add 2048x1080 to the aivx case
authorRens Dijkshoorn <rens@offlinemedia.nl>
Sat, 6 Dec 2014 01:20:38 +0000 (02:20 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 8 Dec 2014 03:26:16 +0000 (04:26 +0100)
This improves compatibility of such files with apple tools

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/movenc.c

index 10e883c..2321748 100644 (file)
@@ -1279,7 +1279,8 @@ static int mov_get_h264_codec_tag(AVFormatContext *s, MOVTrack *track)
                 else if (rate == 60) tag = MKTAG('a','i','1','6');
             }
         } else if (   track->enc->width == 4096 && track->enc->height == 2160
-                   || track->enc->width == 3840 && track->enc->height == 2160) {
+                   || track->enc->width == 3840 && track->enc->height == 2160
+                   || track->enc->width == 2048 && track->enc->height == 1080) {
             tag = MKTAG('a','i','v','x');
         }
     }