[FFmpeg-cvslog] r18334 - in trunk: libavcodec/huffyuv.c tests/ffmpeg.regression.ref tests/rotozoom.regression.ref
michael
subversion
Sun Apr 5 15:02:47 CEST 2009
Author: michael
Date: Sun Apr 5 15:02:47 2009
New Revision: 18334
Log:
Make sure the last bits of huffyuv frames are zeroed.
Fixes issue946
Modified:
trunk/libavcodec/huffyuv.c
trunk/tests/ffmpeg.regression.ref
trunk/tests/rotozoom.regression.ref
Modified: trunk/libavcodec/huffyuv.c
==============================================================================
--- trunk/libavcodec/huffyuv.c Sat Apr 4 23:02:48 2009 (r18333)
+++ trunk/libavcodec/huffyuv.c Sun Apr 5 15:02:47 2009 (r18334)
@@ -1376,6 +1376,8 @@ static int encode_frame(AVCodecContext *
emms_c();
size+= (put_bits_count(&s->pb)+31)/8;
+ put_bits(&s->pb, 16, 0);
+ put_bits(&s->pb, 15, 0);
size/= 4;
if((s->flags&CODEC_FLAG_PASS1) && (s->picture_number&31)==0){
Modified: trunk/tests/ffmpeg.regression.ref
==============================================================================
--- trunk/tests/ffmpeg.regression.ref Sat Apr 4 23:02:48 2009 (r18333)
+++ trunk/tests/ffmpeg.regression.ref Sun Apr 5 15:02:47 2009 (r18334)
@@ -66,7 +66,7 @@ df90a4c50f47577d8fc83a0184499266 *./test
550787 ./tests/data/a-odivx.mp4
a1c691f3be526ecbf3be3152d5bab88c *./tests/data/mpeg4.vsynth.out.yuv
stddev: 7.99 PSNR: 30.06 bytes: 7603200/ 7603200
-6c58e5707afe056b072d2ce21b3b8e4f *./tests/data/a-huffyuv.avi
+190774e155fb7fabfdfb71dfc29c4f87 *./tests/data/a-huffyuv.avi
7933744 ./tests/data/a-huffyuv.avi
799d3db687f6cdd7a837ec156efc171f *./tests/data/huffyuv.vsynth.out.yuv
stddev: 0.00 PSNR:999.99 bytes: 7603200/ 7603200
Modified: trunk/tests/rotozoom.regression.ref
==============================================================================
--- trunk/tests/rotozoom.regression.ref Sat Apr 4 23:02:48 2009 (r18333)
+++ trunk/tests/rotozoom.regression.ref Sun Apr 5 15:02:47 2009 (r18334)
@@ -66,7 +66,7 @@ stddev: 1.91 PSNR: 42.49 bytes: 7603
119797 ./tests/data/a-odivx.mp4
90a3577850239083a9042bef33c50e85 *./tests/data/mpeg4.rotozoom.out.yuv
stddev: 5.34 PSNR: 33.56 bytes: 7603200/ 7603200
-a1323da0c8b437cd6961f8c90451880b *./tests/data/a-huffyuv.avi
+56cd44907a48990e06bd065e189ff461 *./tests/data/a-huffyuv.avi
6455232 ./tests/data/a-huffyuv.avi
dde5895817ad9d219f79a52d0bdfb001 *./tests/data/huffyuv.rotozoom.out.yuv
stddev: 0.00 PSNR:999.99 bytes: 7603200/ 7603200
More information about the ffmpeg-cvslog
mailing list