Message ID | tencent_05D5772733B8BA1600CD7D20354DC04FFF07@qq.com |
---|---|
State | Accepted |
Commit | 7bf85d2d3a3e3d5cced7fcf16b8af6aaaabd289b |
Headers | show |
Series | [FFmpeg-devel] avcodec/h264_parse: Fix error code in decode_extradata | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
Quoting Zhao Zhili (2024-03-26 03:59:00) > From: Zhao Zhili <zhilizhao@tencent.com> > > --- > libavcodec/h264_parse.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavcodec/h264_parse.c b/libavcodec/h264_parse.c > index 3378650fd5..09d3b9dc05 100644 > --- a/libavcodec/h264_parse.c > +++ b/libavcodec/h264_parse.c > @@ -468,7 +468,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); Ok
diff --git a/libavcodec/h264_parse.c b/libavcodec/h264_parse.c index 3378650fd5..09d3b9dc05 100644 --- a/libavcodec/h264_parse.c +++ b/libavcodec/h264_parse.c @@ -468,7 +468,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;
From: Zhao Zhili <zhilizhao@tencent.com> --- libavcodec/h264_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)