Hi!Attached patch allows to use -f framecrc to check r10k -> gbrp10 ffv1 -> r10k roundtrips: The decoder currently writes incorrect lsb for blue that are different for the input and output files. This does not affect the 10 significant bits and therefore the ffv1 files are not affected, only the rgb48 framechecks are wrong.
Please comment, Carl Eugen
diff --git a/libavcodec/r210dec.c b/libavcodec/r210dec.c index cbebf7c..130ff8c 100644 --- a/libavcodec/r210dec.c +++ b/libavcodec/r210dec.c @@ -70,7 +70,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, g = (pixel >> 4) & 0xffc0; r = (pixel >> 14) & 0xffc0; } else { - b = pixel << 4; + b = pixel << 4 & 0xffc0; g = (pixel >> 6) & 0xffc0; r = (pixel >> 16) & 0xffc0; }
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel