avcodec/h264_parse: Fix error code in decode_extradata

Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
Zhao Zhili 2024-03-26 10:59:00 +08:00
parent 271a0a55bc
commit 7bf85d2d3a

View File

@ -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;