History

avcodec/h264_parse: Fix error code in decode_extradata

Zhao Zhili committed 2 years ago

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

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
469 int ret;469 int ret;
470 470
471 if (!data || size <= 0)471 if (!data || size <= 0)
472 return -1;472 return AVERROR(EINVAL);
473 473
474 if (data[0] == 1) {474 if (data[0] == 1) {
475 int i, cnt, nalsize;475 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