You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user