diff options
author | Tong Wu <tong1.wu-at-intel.com@ffmpeg.org> | 2023-12-28 11:10:42 +0800 |
---|---|---|
committer | Haihao Xiang <haihao.xiang@intel.com> | 2024-01-05 11:06:57 +0800 |
commit | 270cd14bbbd26f3f379dedc2ec6e3146c3f191c2 (patch) | |
tree | f3b54dc710a0c4bc3e14e91fce7648e2ad5f092a /libavcodec/dxva2.c | |
parent | 0f01581ccd757f14ec349eba5d19c19b158d5957 (diff) | |
download | ffmpeg-270cd14bbbd26f3f379dedc2ec6e3146c3f191c2.tar.gz |
avcodec/dxva2(h264|mpeg2|vc1): use av_assert0 instead of assert
Signed-off-by: Tong Wu <tong1.wu@intel.com>
Diffstat (limited to 'libavcodec/dxva2.c')
-rw-r--r-- | libavcodec/dxva2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/dxva2.c b/libavcodec/dxva2.c index a6ad5e4dc7..ec0d9e7d1c 100644 --- a/libavcodec/dxva2.c +++ b/libavcodec/dxva2.c @@ -20,10 +20,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include <assert.h> #include <string.h> #include <initguid.h> +#include "libavutil/avassert.h" #include "libavutil/common.h" #include "libavutil/log.h" #include "libavutil/time.h" @@ -1012,7 +1012,7 @@ int ff_dxva2_common_end_frame(AVCodecContext *avctx, AVFrame *frame, /* TODO Film Grain when possible */ - assert(buffer_count == 1 + (qm_size > 0) + 2); + av_assert0(buffer_count == 1 + (qm_size > 0) + 2); #if CONFIG_D3D11VA if (ff_dxva2_is_d3d11(avctx)) |