Signed-off-by: Andreas Rheinhardt <[email protected]>
---
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));
--
2.34.1
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".