mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-04 05:57:49 +02: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;
|
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…
x
Reference in New Issue
Block a user