[FFmpeg-cvslog] r20096 - trunk/libavcodec/mjpegenc.c
reimar
subversion
Wed Sep 30 12:48:14 CEST 2009
Author: reimar
Date: Wed Sep 30 12:48:14 2009
New Revision: 20096
Log:
Use skip_put_bytes in MJPEG encoder instead of filling all bytes with 0
with put_bits.
Modified:
trunk/libavcodec/mjpegenc.c
Modified: trunk/libavcodec/mjpegenc.c
==============================================================================
--- trunk/libavcodec/mjpegenc.c Wed Sep 30 12:37:37 2009 (r20095)
+++ trunk/libavcodec/mjpegenc.c Wed Sep 30 12:48:14 2009 (r20096)
@@ -313,11 +313,8 @@ static void escape_FF(MpegEncContext *s,
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];
More information about the ffmpeg-cvslog
mailing list