You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/mpegvideo_enc: Move updating mb_info to its only user
It is a H.263 option. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -2906,8 +2906,6 @@ static int encode_thread(AVCodecContext *c, void *arg){
|
||||
}
|
||||
}
|
||||
|
||||
update_mb_info(s, 1);
|
||||
|
||||
switch(s->codec_id){
|
||||
case AV_CODEC_ID_MPEG4:
|
||||
if (CONFIG_MPEG4_ENCODER) {
|
||||
@@ -2924,8 +2922,10 @@ static int encode_thread(AVCodecContext *c, void *arg){
|
||||
break;
|
||||
case AV_CODEC_ID_H263:
|
||||
case AV_CODEC_ID_H263P:
|
||||
if (CONFIG_H263_ENCODER)
|
||||
if (CONFIG_H263_ENCODER) {
|
||||
update_mb_info(s, 1);
|
||||
ff_h263_encode_gob_header(s, mb_y);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user