changeset 31151:944efc839c41

Change -vo md5sum to not interleave U and V lines when calculating the MD5, thus making it match FFmpeg's -f framemd5.
author reimar
date Mon, 24 May 2010 17:51:15 +0000
parents 7886a9ada88e
children aee6d64fd1a6
files Changelog libvo/vo_md5sum.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Changelog	Mon May 24 17:36:23 2010 +0000
+++ b/Changelog	Mon May 24 17:51:15 2010 +0000
@@ -25,6 +25,7 @@
     * support ISDB-Tb DVB streams
 
     Drivers:
+    * -vo md5sum md5 calculation changed so output matches FFmpeg's -f framemd5
     * Support for more formats in OpenGL video output drivers (different YUV
       subsampling, 16 bit per component)
     * Selectable YUV to RGB conversion standard for -vo gl
--- a/libvo/vo_md5sum.c	Mon May 24 17:36:23 2010 +0000
+++ b/libvo/vo_md5sum.c	Mon May 24 17:51:15 2010 +0000
@@ -219,6 +219,8 @@
             h = h / 2;
             for (i=0; i<h; i++) {
                 av_md5_update(md5_context, planeU + i * strideU, w);
+            }
+            for (i=0; i<h; i++) {
                 av_md5_update(md5_context, planeV + i * strideV, w);
             }
             av_md5_final(md5_context, md5sum);