diff mbox series

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

Message ID GV1P250MB0737D26C2A6F849E5C1134188FE02@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State New
Headers show
Series [FFmpeg-devel,v2,01/71] avcodec/ratecontrol: Fix double free on error | expand

Commit Message

Andreas Rheinhardt May 11, 2024, 8:51 p.m. UTC
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@outlook.com>
---
 libavcodec/mpegvideo_enc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

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