diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-09-30 10:48:14 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-09-30 10:48:14 +0000 |
commit | 75ddee0a26172d78a866d47d9be740691b254e49 (patch) | |
tree | 78ff2c1c77ef9d4ea7a72b618977a4a79797c01e /libavcodec | |
parent | eb0d04c325a6c2bb46a627f247fe1c73d5a80506 (diff) | |
download | ffmpeg-75ddee0a26172d78a866d47d9be740691b254e49.tar.gz |
Use skip_put_bytes in MJPEG encoder instead of filling all bytes with 0
with put_bits.
Originally committed as revision 20096 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mjpegenc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavcodec/mjpegenc.c b/libavcodec/mjpegenc.c index 03c24153a1..d7a85ee96c 100644 --- a/libavcodec/mjpegenc.c +++ b/libavcodec/mjpegenc.c @@ -313,11 +313,8 @@ static void escape_FF(MpegEncContext *s, int start) if(ff_count==0) return; - /* skip put bits */ - for(i=0; i<ff_count-3; i+=4) - put_bits(&s->pb, 32, 0); - put_bits(&s->pb, (ff_count-i)*8, 0); flush_put_bits(&s->pb); + skip_put_bytes(&s->pb, ff_count); for(i=size-1; ff_count; i--){ int v= buf[i]; |