Mercurial > libavcodec.hg
changeset 10327:bf04c3ecdfe5 libavcodec
Use skip_put_bytes in MJPEG encoder instead of filling all bytes with 0
with put_bits.
author | reimar |
---|---|
date | Wed, 30 Sep 2009 10:48:14 +0000 |
parents | b10c3bc8ea3e |
children | d4c97368f3e4 |
files | mjpegenc.c |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mjpegenc.c Wed Sep 30 10:37:37 2009 +0000 +++ b/mjpegenc.c Wed Sep 30 10:48:14 2009 +0000 @@ -313,11 +313,8 @@ 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];