[FFmpeg-cvslog] avcodec/libdav1d: Don't leak side-data-only packets
Andreas Rheinhardt
git at videolan.org
Sun Nov 7 19:40:23 EET 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon Oct 11 16:01:02 2021 +0200| [776e9f9e2af40252c93e150be712f848d562fccf] | committer: Andreas Rheinhardt
avcodec/libdav1d: Don't leak side-data-only packets
Reviewed-by: James Almer <jamrial at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=776e9f9e2af40252c93e150be712f848d562fccf
---
libavcodec/libdav1d.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavcodec/libdav1d.c b/libavcodec/libdav1d.c
index 2807210e50..2d5fccec71 100644
--- a/libavcodec/libdav1d.c
+++ b/libavcodec/libdav1d.c
@@ -328,6 +328,9 @@ static int libdav1d_receive_frame(AVCodecContext *c, AVFrame *frame)
return res;
}
}
+ } else if (res >= 0) {
+ av_packet_unref(&pkt);
+ return AVERROR(EAGAIN);
}
}
More information about the ffmpeg-cvslog
mailing list