summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/h264.c4
-rw-r--r--libavcodec/libx264.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index ba30e5d38e..7d1109cb89 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -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)
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index 4f44a06548..6388b6ce6c 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -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: