Commit 8d25f9d9 authored by reimar's avatar reimar

Use skip_put_bytes in MJPEG encoder instead of filling all bytes with 0

with put_bits.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20096 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent bf08e3e7
......@@ -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];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment