aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-12-18 19:59:33 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-12-18 19:59:33 +0000
commit71160c55e0a0abb3ade715d759d4ea3e11dcc2dc (patch)
tree6e29a85520f16a08da20821098f0cd31e8bf507a
parent9944fb97c46301fca21c9ff18ab906a29489bcc4 (diff)
downloadffmpeg-71160c55e0a0abb3ade715d759d4ea3e11dcc2dc.tar.gz
fix q=0 bug
Originally committed as revision 4754 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/mpegvideo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 70cc5f8c14..743e992dac 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -5369,7 +5369,8 @@ static void encode_picture(MpegEncContext *s, int picture_number)
}
if (!s->fixed_qscale)
- s->current_picture.quality = ff_rate_estimate_qscale(s); //FIXME pic_ptr
+ s->current_picture_ptr->quality=
+ s->current_picture.quality = ff_rate_estimate_qscale(s);
if(s->adaptive_quant){
switch(s->codec_id){