summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2014-08-05 19:47:26 +0100
committerTim-Philipp Müller <tim@centricular.com>2014-08-05 19:47:26 +0100
commit5872a1454ea5e0c2c80b308beb1ed3b689592d93 (patch)
treeea496b407088511c520e3e53536d4f33e2d390f1
parent08c0c9512c4f4d302b60d589c3f50e1f988c6bf9 (diff)
x264: fix colour inversion with YV12 format
It's the same as I420 but with the U/V planes swapped.
-rw-r--r--ext/x264/gstx264enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c
index 3b67cdab..a5a1e41f 100644
--- a/ext/x264/gstx264enc.c
+++ b/ext/x264/gstx264enc.c
@@ -1971,7 +1971,7 @@ gst_x264_enc_handle_frame (GstVideoEncoder * video_enc,
gst_x264_enc_gst_to_x264_video_format (info->finfo->format, &nplanes);
pic_in.img.i_plane = nplanes;
for (i = 0; i < nplanes; i++) {
- pic_in.img.plane[i] = GST_VIDEO_FRAME_PLANE_DATA (&fdata->vframe, i);
+ pic_in.img.plane[i] = GST_VIDEO_FRAME_COMP_DATA (&fdata->vframe, i);
pic_in.img.i_stride[i] = GST_VIDEO_FRAME_COMP_STRIDE (&fdata->vframe, i);
}