The branch, master has been updated
via f4312ea13824e1ec862c4f8345800ce67d249f59 (commit)
from a8e8daa276b24b6e3c58f83fef1fbb71910a8e3e (commit)
- Log -----------------------------------------------------------------
commit f4312ea13824e1ec862c4f8345800ce67d249f59
Author: wutno <[email protected]>
AuthorDate: Thu Nov 20 16:19:49 2025 -0500
Commit: Marton Balint <[email protected]>
CommitDate: Wed Dec 3 22:09:20 2025 +0000
avformat/xmv: Handle zero sized packet at end of file
Some XMVs introduce a blank packet at the end of the stream. Previously, we
didn't account for this and returned AVERROR_INVALIDDATA, indicating an
issue
with the file. Instead, let's check for this and close out with AVERROR_EOF.
diff --git a/libavformat/xmv.c b/libavformat/xmv.c
index c0b402860e..2c5e2bb475 100644
--- a/libavformat/xmv.c
+++ b/libavformat/xmv.c
@@ -412,7 +412,7 @@ static int xmv_fetch_new_packet(AVFormatContext *s)
AVIOContext *pb = s->pb;
int result;
- if (xmv->this_packet_offset == xmv->next_packet_offset)
+ if (xmv->next_packet_size == 0)
return AVERROR_EOF;
/* Seek to it */
-----------------------------------------------------------------------
Summary of changes:
libavformat/xmv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive
--
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]