aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/msmpeg4.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-04-01 15:38:01 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-04-01 15:38:01 +0000
commit1f9aea9b91c653c6ad95e84b2ff250738e352eec (patch)
treecc316f2a7ae37e508d262854dd210bcc0ff196d2 /libavcodec/msmpeg4.c
parent309522372c481dea3d9f6f33eacc6d200cce10cb (diff)
downloadffmpeg-1f9aea9b91c653c6ad95e84b2ff250738e352eec.tar.gz
fixing msmpeg4v2 encoding
Originally committed as revision 1723 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/msmpeg4.c')
-rw-r--r--libavcodec/msmpeg4.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libavcodec/msmpeg4.c b/libavcodec/msmpeg4.c
index 4bac6d3b74..115e71375f 100644
--- a/libavcodec/msmpeg4.c
+++ b/libavcodec/msmpeg4.c
@@ -439,12 +439,10 @@ void msmpeg4_encode_ext_header(MpegEncContext * s)
put_bits(&s->pb, 11, FFMIN(s->bit_rate/1024, 2047));
- if(s->msmpeg4_version<3)
- s->flipflop_rounding=0;
- else{
- s->flipflop_rounding=1;
+ if(s->msmpeg4_version>=3)
put_bits(&s->pb, 1, s->flipflop_rounding);
- }
+ else
+ assert(s->flipflop_rounding==0);
}
#endif //CONFIG_ENCODERS