[FFmpeg-cvslog] avformat/vqf: Return 0 on success in read_packet
Andreas Rheinhardt
git at videolan.org
Tue Mar 26 07:44:36 EET 2024
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Mar 17 20:38:11 2024 +0100| [27af88fb7fe6ecbcda60f46f8f22f2ca324eb7ec] | committer: Andreas Rheinhardt
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 <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=27af88fb7fe6ecbcda60f46f8f22f2ca324eb7ec
---
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,
More information about the ffmpeg-cvslog
mailing list