Mercurial > libavcodec.hg
comparison mpegvideo.c @ 2981:33d4fb0df0d3 libavcodec
better f_code guessing in 2nd pass
author | michael |
---|---|
date | Thu, 22 Dec 2005 22:48:09 +0000 |
parents | 529163f99474 |
children | 538eed481f62 |
comparison
equal
deleted
inserted
replaced
2980:529163f99474 | 2981:33d4fb0df0d3 |
---|---|
5296 }else if(s->pict_type!=B_TYPE){ | 5296 }else if(s->pict_type!=B_TYPE){ |
5297 if(s->flipflop_rounding || s->codec_id == CODEC_ID_H263P || s->codec_id == CODEC_ID_MPEG4) | 5297 if(s->flipflop_rounding || s->codec_id == CODEC_ID_H263P || s->codec_id == CODEC_ID_MPEG4) |
5298 s->no_rounding ^= 1; | 5298 s->no_rounding ^= 1; |
5299 } | 5299 } |
5300 | 5300 |
5301 if(s->flags & CODEC_FLAG_PASS2) | 5301 if(s->flags & CODEC_FLAG_PASS2){ |
5302 estimate_qp(s, 1); | 5302 estimate_qp(s, 1); |
5303 else if(!(s->flags & CODEC_FLAG_QSCALE)){ | 5303 ff_get_2pass_fcode(s); |
5304 }else if(!(s->flags & CODEC_FLAG_QSCALE)){ | |
5304 RateControlContext *rcc= &s->rc_context; | 5305 RateControlContext *rcc= &s->rc_context; |
5305 | 5306 |
5306 if(s->pict_type==B_TYPE) | 5307 if(s->pict_type==B_TYPE) |
5307 s->lambda= rcc->last_qscale_for[s->pict_type]; | 5308 s->lambda= rcc->last_qscale_for[s->pict_type]; |
5308 else | 5309 else |