avcodec/roqvideo: use JPEG color range
authorEric Lasota <ejlasota@gmail.com>
Sun, 6 Jul 2014 19:42:43 +0000 (15:42 -0400)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 6 Jul 2014 21:34:58 +0000 (23:34 +0200)
Signed-off-by: ejlasota <ejlasota@gmail.com>
Also update fate test checksums
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/roqvideodec.c
libavcodec/roqvideoenc.c
tests/ref/fate/idroq-video-encode
tests/ref/seek/vsynth2-roqvideo
tests/ref/vsynth/vsynth1-roqvideo
tests/ref/vsynth/vsynth2-roqvideo

index 322345e..413b66d 100644 (file)
@@ -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;
 }
index cae157b..df15196 100644 (file)
@@ -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,
 };
index 9d25b13..bdb6fed 100644 (file)
@@ -1 +1 @@
-50fa863f7820bb22ddeb74d5adf5f0bc
+e9ff61023826fce304350ff6e7c63b2f
index d003a37..50a0a33 100644 (file)
@@ -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
index 5adba69..2cca942 100644 (file)
@@ -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
index d4c075a..c8b02e7 100644 (file)
@@ -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