mirror of https://git.ffmpeg.org/ffmpeg.git
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
|
@ -469,7 +469,7 @@ int ff_h264_decode_extradata(const uint8_t *data, int size, H264ParamSets *ps,
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (!data || size <= 0)
|
if (!data || size <= 0)
|
||||||
return -1;
|
return AVERROR(EINVAL);
|
||||||
|
|
||||||
if (data[0] == 1) {
|
if (data[0] == 1) {
|
||||||
int i, cnt, nalsize;
|
int i, cnt, nalsize;
|
||||||
|
|
Loading…
Reference in New Issue