projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb0d04c
)
Use skip_put_bytes in MJPEG encoder instead of filling all bytes with 0
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Wed, 30 Sep 2009 10:48:14 +0000
(10:48 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Wed, 30 Sep 2009 10:48:14 +0000
(10:48 +0000)
with put_bits.
Originally committed as revision 20096 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mjpegenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/mjpegenc.c
b/libavcodec/mjpegenc.c
index
03c2415
..
d7a85ee
100644
(file)
--- 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];