Commit 7bf85d2d authored by Zhao Zhili's avatar Zhao Zhili

avcodec/h264_parse: Fix error code in decode_extradata

Signed-off-by: 's avatarZhao Zhili <zhilizhao@tencent.com>
parent 271a0a55
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment