diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-11 16:01:02 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-11-07 17:32:52 +0100 |
commit | 776e9f9e2af40252c93e150be712f848d562fccf (patch) | |
tree | 02704f56893a2be7bd018b53e942880f250093cf /libavcodec | |
parent | ba91b8b6857e367a05b2d6da0cbcea7b1eaf94d5 (diff) |
avcodec/libdav1d: Don't leak side-data-only packets
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/libdav1d.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); } } |