[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec snow.c,1.89,1.90
Loren Merritt CVS
lorenm
Mon Mar 13 02:26:09 CET 2006
Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv4137
Modified Files:
snow.c
Log Message:
obey vqscale in 2nd pass
Index: snow.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/snow.c,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -d -r1.89 -r1.90
--- snow.c 11 Mar 2006 00:19:32 -0000 1.89
+++ snow.c 13 Mar 2006 01:26:06 -0000 1.90
@@ -4053,7 +4053,8 @@
pict->pict_type= s->m.rc_context.entry[avctx->frame_number].new_pict_type;
s->keyframe= pict->pict_type==FF_I_TYPE;
s->m.picture_number= avctx->frame_number;
- pict->quality= ff_rate_estimate_qscale(&s->m, 0);
+ if(!(avctx->flags&CODEC_FLAG_QSCALE))
+ pict->quality= ff_rate_estimate_qscale(&s->m, 0);
}else{
s->keyframe= avctx->gop_size==0 || avctx->frame_number % avctx->gop_size == 0;
pict->pict_type= s->keyframe ? FF_I_TYPE : FF_P_TYPE;
More information about the ffmpeg-cvslog
mailing list