diff mbox series

[FFmpeg-devel,14/15] avformat/vqf: Return 0 on success in read_packet

Message ID GV1P250MB0737922EDAD9EBD07991676C8F302@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 27af88fb7fe6ecbcda60f46f8f22f2ca324eb7ec
Headers show
Series [FFmpeg-devel,01/15] configure: Make hls demuxer select AAC, AC3 and EAC3 demuxers | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt March 23, 2024, 2:06 a.m. UTC
Demuxers are not supposed to return the size of the packet read.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavformat/vqf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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,