History

avformat/vqf: Return 0 on success in read_packet

Demuxers are not supposed to return the size of the packet read.

Andreas Rheinhardt committed 2 years ago

Commit 27af88f1 parent 29aa4991 file · +1 −1Browse files

Showing the changes to libavformat (1 of 1 file). Show all

Unified · Split

libavformat/vqf.c+1−1
@@ -259,7 +259,7 @@ static int vqf_read_packet(AVFormatContext *s, AVPacket *pkt) · 258 unmodified lines
259259 c->last_frame_bits = pkt->data[size+1];
260260 c->remaining_bits = (size << 3) - c->frame_bit_len + c->remaining_bits;
261261
262− return size+2;
262+ return 0;
263263 }
264264
265265 static int vqf_read_seek(AVFormatContext *s,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t