Message ID | 20231225141859.664-4-tong1.wu@intel.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel,1/5] avcodec/d3d12va_vp9: fix vp9 max_num_refs value | 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 |
On Ma, 2023-12-25 at 22:18 +0800, Tong Wu wrote: > Return zero for failed case and avoid aborting the program. > > Signed-off-by: Tong Wu <tong1.wu@intel.com> > --- > libavcodec/d3d12va_decode.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/libavcodec/d3d12va_decode.c b/libavcodec/d3d12va_decode.c > index 50d5b8d601..20dc485284 100644 > --- a/libavcodec/d3d12va_decode.c > +++ b/libavcodec/d3d12va_decode.c > @@ -20,7 +20,6 @@ > * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 > USA > */ > > -#include <assert.h> > #include <string.h> > #include <initguid.h> > > @@ -80,7 +79,6 @@ unsigned ff_d3d12va_get_surface_index(const AVCodecContext > *avctx, > } > > fail: > - assert(0); Something is wrong if arriving here, could you add a warning message ? Thanks Haihao > return 0; > } >
diff --git a/libavcodec/d3d12va_decode.c b/libavcodec/d3d12va_decode.c index 50d5b8d601..20dc485284 100644 --- a/libavcodec/d3d12va_decode.c +++ b/libavcodec/d3d12va_decode.c @@ -20,7 +20,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include <assert.h> #include <string.h> #include <initguid.h> @@ -80,7 +79,6 @@ unsigned ff_d3d12va_get_surface_index(const AVCodecContext *avctx, } fail: - assert(0); return 0; }
Return zero for failed case and avoid aborting the program. Signed-off-by: Tong Wu <tong1.wu@intel.com> --- libavcodec/d3d12va_decode.c | 2 -- 1 file changed, 2 deletions(-)