mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 16:52:31 +00:00
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;
|
||||
|
||||
if (!data || size <= 0)
|
||||
return -1;
|
||||
return AVERROR(EINVAL);
|
||||
|
||||
if (data[0] == 1) {
|
||||
int i, cnt, nalsize;
|
||||
|
Loading…
Reference in New Issue
Block a user