1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Make sure the last bits of huffyuv frames are zeroed.

Fixes issue946

Originally committed as revision 18334 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2009-04-05 13:02:47 +00:00
parent 40fa514033
commit 300a3d0d00
3 changed files with 4 additions and 2 deletions

View File

@ -1376,6 +1376,8 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size,
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){

View File

@ -66,7 +66,7 @@ df90a4c50f47577d8fc83a0184499266 *./tests/data/a-odivx.mp4
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

View File

@ -66,7 +66,7 @@ stddev: 1.91 PSNR: 42.49 bytes: 7603200/ 7603200
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