From 27af88fb7fe6ecbcda60f46f8f22f2ca324eb7ec Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 17 Mar 2024 20:38:11 +0100 Subject: [PATCH] avformat/vqf: Return 0 on success in read_packet Demuxers are not supposed to return the size of the packet read. Signed-off-by: Andreas Rheinhardt --- libavformat/vqf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/vqf.c b/libavformat/vqf.c index 4c7f5aa22e..409c014a92 100644 --- a/libavformat/vqf.c +++ b/libavformat/vqf.c @@ -259,7 +259,7 @@ static int vqf_read_packet(AVFormatContext *s, AVPacket *pkt) c->last_frame_bits = pkt->data[size+1]; c->remaining_bits = (size << 3) - c->frame_bit_len + c->remaining_bits; - return size+2; + return 0; } static int vqf_read_seek(AVFormatContext *s,