[FFmpeg-devel] [PATCH 18/23] avcodec/roqvideoenc: do not use YUVJ pixel format

Paul B Mahol onemda at gmail.com
Tue Dec 12 15:56:16 EET 2017


Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
 libavcodec/roqvideoenc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/roqvideoenc.c b/libavcodec/roqvideoenc.c
index ac05123dc6..18f7dd5368 100644
--- a/libavcodec/roqvideoenc.c
+++ b/libavcodec/roqvideoenc.c
@@ -1132,7 +1132,8 @@ AVCodec ff_roq_encoder = {
     .init                 = roq_encode_init,
     .encode2              = roq_encode_frame,
     .close                = roq_encode_end,
-    .pix_fmts             = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUVJ444P,
+    .pix_fmts             = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV444P,
                                                         AV_PIX_FMT_NONE },
+    .color_ranges         = (const enum AVColorRange[]){ AVCOL_RANGE_JPEG, -1},
     .priv_class     = &roq_class,
 };
-- 
2.11.0



More information about the ffmpeg-devel mailing list