Mercurial > libavcodec.hg
comparison msmpeg4.c @ 7260:3ec34b551aae libavcodec
bitstream: move put_sbits() from flacenc.c to bitstream.h and use it
throughout libavcodec.
author | ramiro |
---|---|
date | Sun, 13 Jul 2008 14:27:48 +0000 |
parents | 7a73d76aaaa0 |
children | 8195c970d077 |
comparison
equal
deleted
inserted
replaced
7259:9de4bc7d4938 | 7260:3ec34b551aae |
---|---|
955 put_bits(&s->pb, s->esc3_run_length, run); | 955 put_bits(&s->pb, s->esc3_run_length, run); |
956 put_bits(&s->pb, 1, sign); | 956 put_bits(&s->pb, 1, sign); |
957 put_bits(&s->pb, s->esc3_level_length, level); | 957 put_bits(&s->pb, s->esc3_level_length, level); |
958 }else{ | 958 }else{ |
959 put_bits(&s->pb, 6, run); | 959 put_bits(&s->pb, 6, run); |
960 put_bits(&s->pb, 8, slevel & 0xff); | 960 put_sbits(&s->pb, 8, slevel); |
961 } | 961 } |
962 } else { | 962 } else { |
963 /* second escape */ | 963 /* second escape */ |
964 put_bits(&s->pb, 1, 1); | 964 put_bits(&s->pb, 1, 1); |
965 put_bits(&s->pb, rl->table_vlc[code][1], rl->table_vlc[code][0]); | 965 put_bits(&s->pb, rl->table_vlc[code][1], rl->table_vlc[code][0]); |