[FFmpeg-devel] [PATCH 70/72] avcodec/mpegpicture: Don't check for DELAYED_PIC_REF

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Wed Feb 2 08:01:56 EET 2022


It is not set any more by any user of mpegvideo/mpegpicture.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
I think that needs_realloc could also be removed now that the buffers
that this flag is all about are refcounted.

 libavcodec/mpegpicture.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mpegpicture.c b/libavcodec/mpegpicture.c
index 07fc79685c..4f39cf89ba 100644
--- a/libavcodec/mpegpicture.c
+++ b/libavcodec/mpegpicture.c
@@ -418,7 +418,7 @@ static inline int pic_is_unused(Picture *pic)
 {
     if (!pic->f->buf[0])
         return 1;
-    if (pic->needs_realloc && !(pic->reference & DELAYED_PIC_REF))
+    if (pic->needs_realloc)
         return 1;
     return 0;
 }
-- 
2.32.0



More information about the ffmpeg-devel mailing list