forked from FFmpeg/FFmpeg
avcodec/h264_parse: Fix error code in decode_extradata
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
parent
271a0a55bc
commit
7bf85d2d3a
1 changed files with 1 additions and 1 deletions
|
@ -469,7 +469,7 @@ int ff_h264_decode_extradata(const uint8_t *data, int size, H264ParamSets *ps,
|
|||
int ret;
|
||||
|
||||
if (!data || size <= 0)
|
||||
return -1;
|
||||
return AVERROR(EINVAL);
|
||||
|
||||
if (data[0] == 1) {
|
||||
int i, cnt, nalsize;
|
||||
|
|
Loading…
Add table
Reference in a new issue