ffmpeg | branch: master | Andreas Rheinhardt <[email protected]> | Tue Aug 9 13:37:41 2022 +0200| [dfaf319ac9477c7efe35c773b23666f515dd3f3e] | committer: Andreas Rheinhardt
avcodec/mpegvideo_enc: Remove redundant check Signed-off-by: Andreas Rheinhardt <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dfaf319ac9477c7efe35c773b23666f515dd3f3e --- libavcodec/mpegvideo_enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index 2cd4db27bc..4840d80fe8 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -1252,7 +1252,7 @@ static int estimate_best_b_count(MpegEncContext *s) const Picture *pre_input_ptr = i ? s->input_picture[i - 1] : s->next_picture_ptr; - if (pre_input_ptr && (!i || s->input_picture[i - 1])) { + if (pre_input_ptr) { const uint8_t *data[4]; memcpy(data, pre_input_ptr->f->data, sizeof(data)); _______________________________________________ ffmpeg-cvslog mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
