Revision 75ddee0a libavcodec/mjpegenc.c

View differences:

libavcodec/mjpegenc.c
313 313

  
314 314
    if(ff_count==0) return;
315 315

  
316
    /* skip put bits */
317
    for(i=0; i<ff_count-3; i+=4)
318
        put_bits(&s->pb, 32, 0);
319
    put_bits(&s->pb, (ff_count-i)*8, 0);
320 316
    flush_put_bits(&s->pb);
317
    skip_put_bytes(&s->pb, ff_count);
321 318

  
322 319
    for(i=size-1; ff_count; i--){
323 320
        int v= buf[i];

Also available in: Unified diff