History

avformat/flvdec: Use appropriate error code

Zhao Zhili committed 1 year ago

Commit 0f7d77f1 parent fa5a1001 file · +1 −1Browse files

Unified · Split

libavformat/flvdec.c+1−1
@@ -489,7 +489,7 @@ static int amf_get_string(AVIOContext *ioc, char *buffer, int buffsize) · 488 unmodified lines
489489 int length = avio_rb16(ioc);
490490 if (length >= buffsize) {
491491 avio_skip(ioc, length);
492− return -1;
492+ return AVERROR_INVALIDDATA;
493493 }
494494
495495 ret = avio_read(ioc, buffer, length);

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