[FFmpeg-devel] [PATCH v2 70/71] avcodec/mpegvideo_enc: Binarize reference

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Sat May 11 23:51:34 EEST 2024


The H.264 decoder used reference to store its picture_structure
into it; yet it does not use mpegvideo any more since commit
2c541554076cc8a72e7145d4da30389ca763f32f. Afterwards commit
629259bdb58061b7b7c1ae4cdc44599f6c0bb050 removed the last remnants.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 libavcodec/mpegvideo_enc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index 58f68ef5f3..401ba8ca5a 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -1639,8 +1639,7 @@ static int select_input_picture(MpegEncContext *s)
 
     if (s->reordered_input_picture[0]) {
         s->reordered_input_picture[0]->reference =
-           s->reordered_input_picture[0]->f->pict_type !=
-               AV_PICTURE_TYPE_B ? 3 : 0;
+           s->reordered_input_picture[0]->f->pict_type != AV_PICTURE_TYPE_B;
 
         if (s->reordered_input_picture[0]->shared || s->avctx->rc_buffer_size) {
             // input is a shared pix, so we can't modify it -> allocate a new
-- 
2.40.1



More information about the ffmpeg-devel mailing list