diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2014-08-05 19:47:26 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-08-11 08:35:39 +0200 |
commit | 22f7a402cde0c9f4d5a94013a63c3c5a56ee86cd (patch) | |
tree | 62390190f9a238fb3299f834301b5102ab45b26a | |
parent | a8c5bf9171ee5c101eb58aa54c34041e099b54a6 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c index 3d81d962..e0d84b36 100644 --- a/ext/x264/gstx264enc.c +++ b/ext/x264/gstx264enc.c @@ -1958,7 +1958,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); } |