mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/mpegvideo: Avoid needlessly calling function
The very first check in this if-else if-else if construct is "if (s->encoding ||", i.e. in case of the WMV2 encoder the else branches are never executed. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
5d856ef476
commit
22ef01f5e1
|
@ -2122,8 +2122,7 @@ void mpv_reconstruct_mb_internal(MpegEncContext *s, int16_t block[12][64],
|
|||
}
|
||||
}
|
||||
}//fi gray
|
||||
}
|
||||
else if (CONFIG_WMV2_DECODER || CONFIG_WMV2_ENCODER) {
|
||||
} else if (CONFIG_WMV2_DECODER) {
|
||||
ff_wmv2_add_mb(s, block, dest_y, dest_cb, dest_cr);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue