summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-11 16:01:02 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-11-07 17:32:52 +0100
commit776e9f9e2af40252c93e150be712f848d562fccf (patch)
tree02704f56893a2be7bd018b53e942880f250093cf /libavcodec
parentba91b8b6857e367a05b2d6da0cbcea7b1eaf94d5 (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.c3
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);
}
}