diff mbox series

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

Message ID AM7PR03MB66604C62747E7FE56A7C2A8D8F279@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit 629259bdb58061b7b7c1ae4cdc44599f6c0bb050
Headers show
Series [FFmpeg-devel,v2,01/69] avcodec/avcodec: Avoid MpegEncContext in AVHWAccel.decode_mb | expand

Commit Message

Andreas Rheinhardt Feb. 2, 2022, 6:01 a.m. UTC
It is not set any more by any user of mpegvideo/mpegpicture.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@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 mbox series

Patch

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;
 }