diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2020-05-28 23:33:04 +0800 |
---|---|---|
committer | Limin Wang <lance.lmwang@gmail.com> | 2020-06-13 06:59:18 +0800 |
commit | 0a1dc817237b8546189960efd523257b4f62e1ab (patch) | |
tree | 32d432b7e67cd5e6ae64a62bb9b7ff2edf8c237e /libavutil | |
parent | d6cdedee4ce49461b1c5d05f7e9645c9089d7c35 (diff) | |
download | ffmpeg-0a1dc817237b8546189960efd523257b4f62e1ab.tar.gz |
avcodec/h264dec: remove FF_ALLOCZ_ARRAY_OR_GOTO and gotos lable
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h index 4acbcf56cb..00f1a578c0 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -137,6 +137,9 @@ # define LOCAL_ALIGNED_32(t, v, ...) E1(LOCAL_ALIGNED_A(32, t, v, __VA_ARGS__,,)) #endif +#define FF_ALLOC_TYPED_ARRAY(p, nelem) (p = av_malloc_array(nelem, sizeof(*p))) +#define FF_ALLOCZ_TYPED_ARRAY(p, nelem) (p = av_mallocz_array(nelem, sizeof(*p))) + #define FF_ALLOC_OR_GOTO(ctx, p, size, label)\ {\ p = av_malloc(size);\ |