Commit cdfad4aed8 for ffmpeg
commit cdfad4aed8b8e3ddcaddee3f8f2a9398f9db9c34
Author: Michael Niedermayer <michael@niedermayer.cc>
Date: Tue Oct 13 22:42:56 2026 +0200
avformat/rtpdec_rfc4175: Return no packet when the first field ends
rfc4175_finalize_packet() returned success without a packet for the first
field of interlaced video, so an empty packet was returned for every frame.
This is not a security issue.
Fixes: 1l09F1Fvpg1j
Empty packets Replicated through API
Found during triage of the security report V8a3e2cGQI7w, also raised by Forgejo Fairy while reviewing PR #24949
diff --git a/libavformat/rtpdec_rfc4175.c b/libavformat/rtpdec_rfc4175.c
index 41bf4a2c5d..3d31bb268b 100644
--- a/libavformat/rtpdec_rfc4175.c
+++ b/libavformat/rtpdec_rfc4175.c
@@ -216,7 +216,7 @@ fail:
static int rfc4175_finalize_packet(PayloadContext *data, AVPacket *pkt,
int stream_index)
{
- int ret = 0;
+ int ret = AVERROR(EAGAIN);
pkt->stream_index = stream_index;
if (!data->interlaced || data->field) {