[Ffmpeg-cvslog] r7148 - trunk/libavcodec/mpegvideo.c
michael
subversion
Tue Nov 21 20:37:44 CET 2006
Author: michael
Date: Tue Nov 21 20:37:44 2006
New Revision: 7148
Modified:
trunk/libavcodec/mpegvideo.c
Log:
fix b frames + -mbd rd without -psnr (yes that was seriously buggy and probably hasnt been noticed as everyone who tested stuff used -psnr)
Modified: trunk/libavcodec/mpegvideo.c
==============================================================================
--- trunk/libavcodec/mpegvideo.c (original)
+++ trunk/libavcodec/mpegvideo.c Tue Nov 21 20:37:44 2006
@@ -3934,7 +3934,7 @@
else if (s->h263_pred || s->h263_aic)
s->mbintra_table[mb_xy]=1;
- if ((s->flags&CODEC_FLAG_PSNR) || !(s->encoding && (s->intra_only || s->pict_type==B_TYPE))) { //FIXME precalc
+ if ((s->flags&CODEC_FLAG_PSNR) || !(s->encoding && (s->intra_only || s->pict_type==B_TYPE) && s->avctx->mb_decision != FF_MB_DECISION_RD)) { //FIXME precalc
uint8_t *dest_y, *dest_cb, *dest_cr;
int dct_linesize, dct_offset;
op_pixels_func (*op_pix)[4];
More information about the ffmpeg-cvslog
mailing list