This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 170d3dccc35090853894bbcbf1b2c49417d27bbb
Author:     Patrick Domack <[email protected]>
AuthorDate: Sun Nov 1 04:56:43 2026 -0500
Commit:     Peter Ross <[email protected]>
CommitDate: Sat Nov 21 20:51:25 2026 +0000

    avformat/dss: use FFERROR_REDO to drop a frame without its swap byte
    
    A swapped SP frame takes one byte from the frame before it, two bytes
    before its own start. The demuxer carries that byte over from the frame
    it read last, and a seek marks it unknown. When the first frame after a
    seek is swapped, dss_sp_read_packet() returned AVERROR(EAGAIN) for it,
    and av_read_frame() passed that on. A caller that stops at the first
    error got no packets after the seek.
    
    Drop that frame with FFERROR_REDO instead, so that av_read_frame()
    moves on to the next frame.
    
    Signed-off-by: Patrick Domack <[email protected]>
---
 libavformat/dss.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/dss.c b/libavformat/dss.c
index ce86b32d6f..d57d58711f 100644
--- a/libavformat/dss.c
+++ b/libavformat/dss.c
@@ -247,7 +247,7 @@ static int dss_sp_read_packet(AVFormatContext *s, AVPacket 
*pkt)
     dss_sp_byte_swap(ctx, pkt->data);
 
     if (ctx->dss_sp_swap_byte < 0) {
-        return AVERROR(EAGAIN);
+        return FFERROR_REDO;
     }
 
     return 0;

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to