diff --git a/libavcodec/roqvideodec.c b/libavcodec/roqvideodec.c index 322345ef1c..413b66d233 100644 --- a/libavcodec/roqvideodec.c +++ b/libavcodec/roqvideodec.c @@ -189,7 +189,7 @@ static av_cold int roq_decode_init(AVCodecContext *avctx) return AVERROR(ENOMEM); } - avctx->pix_fmt = AV_PIX_FMT_YUV444P; + avctx->pix_fmt = AV_PIX_FMT_YUVJ444P; return 0; } diff --git a/libavcodec/roqvideoenc.c b/libavcodec/roqvideoenc.c index cae157b768..df15196e10 100644 --- a/libavcodec/roqvideoenc.c +++ b/libavcodec/roqvideoenc.c @@ -1097,7 +1097,7 @@ AVCodec ff_roq_encoder = { .init = roq_encode_init, .encode2 = roq_encode_frame, .close = roq_encode_end, - .pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV444P, + .pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_NONE }, .priv_class = &roq_class, }; diff --git a/tests/ref/fate/idroq-video-encode b/tests/ref/fate/idroq-video-encode index 9d25b13a85..bdb6fedf56 100644 --- a/tests/ref/fate/idroq-video-encode +++ b/tests/ref/fate/idroq-video-encode @@ -1 +1 @@ -50fa863f7820bb22ddeb74d5adf5f0bc +e9ff61023826fce304350ff6e7c63b2f diff --git a/tests/ref/seek/vsynth2-roqvideo b/tests/ref/seek/vsynth2-roqvideo index d003a37404..50a0a335c7 100644 --- a/tests/ref/seek/vsynth2-roqvideo +++ b/tests/ref/seek/vsynth2-roqvideo @@ -1,4 +1,4 @@ -ret: 0 st: 0 flags:0 dts: 0.000000 pts: 0.000000 pos: 24 size: 26082 +ret: 0 st: 0 flags:0 dts: 0.000000 pts: 0.000000 pos: 24 size: 26814 ret:-1 st:-1 flags:0 ts:-1.000000 ret:-1 st:-1 flags:1 ts: 1.894167 ret:-1 st: 0 flags:0 ts: 0.800000 diff --git a/tests/ref/vsynth/vsynth1-roqvideo b/tests/ref/vsynth/vsynth1-roqvideo index 5adba69490..2cca94224b 100644 --- a/tests/ref/vsynth/vsynth1-roqvideo +++ b/tests/ref/vsynth/vsynth1-roqvideo @@ -1,4 +1,4 @@ -cf8b7b0e539bab3169c234ca63d71dd8 *tests/data/fate/vsynth1-roqvideo.roq -101671 tests/data/fate/vsynth1-roqvideo.roq -0ad983c291b1ed373645c5b12a108c61 *tests/data/fate/vsynth1-roqvideo.out.rawvideo -stddev: 7.74 PSNR: 30.35 MAXDIFF: 89 bytes: 7603200/ 760320 +8037e62b2707a246e787bb1723b752b9 *tests/data/fate/vsynth1-roqvideo.roq +102571 tests/data/fate/vsynth1-roqvideo.roq +9e3bb47e5e9708392d7eba8f944b6920 *tests/data/fate/vsynth1-roqvideo.out.rawvideo +stddev: 7.75 PSNR: 30.34 MAXDIFF: 88 bytes: 7603200/ 760320 diff --git a/tests/ref/vsynth/vsynth2-roqvideo b/tests/ref/vsynth/vsynth2-roqvideo index d4c075a89d..c8b02e7407 100644 --- a/tests/ref/vsynth/vsynth2-roqvideo +++ b/tests/ref/vsynth/vsynth2-roqvideo @@ -1,4 +1,4 @@ -b46f899b2363065c60f3782ba1f8b7bd *tests/data/fate/vsynth2-roqvideo.roq -92786 tests/data/fate/vsynth2-roqvideo.roq -e69fca960dd0911e9b8d589c13e11dc1 *tests/data/fate/vsynth2-roqvideo.out.rawvideo -stddev: 3.81 PSNR: 36.49 MAXDIFF: 54 bytes: 7603200/ 760320 +1a43cd71c91f2ef42d11a81419bff3bd *tests/data/fate/vsynth2-roqvideo.roq +94810 tests/data/fate/vsynth2-roqvideo.roq +97cda6096430c0ab7a43a0e120cd3e91 *tests/data/fate/vsynth2-roqvideo.out.rawvideo +stddev: 3.81 PSNR: 36.50 MAXDIFF: 49 bytes: 7603200/ 760320