History

avcodec/h264_parse: Fix error code in decode_extradata

Zhao Zhili committed 2 years ago

Commit 7bf85d21 parent 271a0a51 file · +1 −1Browse files

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

Unified · Split

libavcodec/h264_parse.c+1−1
@@ -469,7 +469,7 @@ int ff_h264_decode_extradata(const uint8_t *data, int size, H264ParamSets *ps, · 468 unmodified lines
469469 int ret;
470470
471471 if (!data || size <= 0)
472− return -1;
472+ return AVERROR(EINVAL);
473473
474474 if (data[0] == 1) {
475475 int i, cnt, nalsize;

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