[FFmpeg-devel,14/27] avcodec/reqvideoenc: do not use YUVJ pixel format

Submitted by Paul B Mahol on Dec. 9, 2017, 3:38 p.m.

Details

Message ID 20171209153819.19007-14-onemda@gmail.com
State New
Headers show

Commit Message

Paul B Mahol Dec. 9, 2017, 3:38 p.m.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
---
 libavcodec/roqvideoenc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/libavcodec/roqvideoenc.c b/libavcodec/roqvideoenc.c
index ac05123dc6..0f49450054 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_range          = AVCOL_RANGE_JPEG,
     .priv_class     = &roq_class,
 };