]> git.sesse.net Git - ffmpeg/commitdiff
h264: fix interpretation of interleved stereo modes
authorFelix Abecassis <felix.abecassis@gmail.com>
Thu, 7 Aug 2014 09:42:36 +0000 (11:42 +0200)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Thu, 7 Aug 2014 10:31:47 +0000 (11:31 +0100)
Column and row frame packing arrangements were inverted.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
libavcodec/h264.c
libavcodec/libx264.c

index ba30e5d38e484e4d941dd171ce288a286c8dda81..7d1109cb890ae5e5d489f19208f8c95556b2aae5 100644 (file)
@@ -800,10 +800,10 @@ static void decode_postinit(H264Context *h, int setup_finished)
             stereo->type = AV_STEREO3D_CHECKERBOARD;
             break;
         case 1:
-            stereo->type = AV_STEREO3D_LINES;
+            stereo->type = AV_STEREO3D_COLUMNS;
             break;
         case 2:
-            stereo->type = AV_STEREO3D_COLUMNS;
+            stereo->type = AV_STEREO3D_LINES;
             break;
         case 3:
             if (h->quincunx_subsampling)
index 4f44a06548d1bd2895606cffc90626084a048842..6388b6ce6c992fb4e4139827f01fa0bac3ec7aa5 100644 (file)
@@ -207,10 +207,10 @@ static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame,
             case AV_STEREO3D_CHECKERBOARD:
                 fpa_type = 0;
                 break;
-            case AV_STEREO3D_LINES:
+            case AV_STEREO3D_COLUMNS:
                 fpa_type = 1;
                 break;
-            case AV_STEREO3D_COLUMNS:
+            case AV_STEREO3D_LINES:
                 fpa_type = 2;
                 break;
             case AV_STEREO3D_SIDEBYSIDE: