1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

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>
This commit is contained in:
Andreas Rheinhardt 2021-10-11 16:01:02 +02:00
parent ba91b8b685
commit 776e9f9e2a

View File

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