summaryrefslogtreecommitdiff
path: root/libavcodec/vc1dec.c
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2019-12-26 09:31:04 +0800
committerMichael Niedermayer <michael@niedermayer.cc>2019-12-26 22:22:33 +0100
commitef91e3955a73ec9a469d04220611dd2db8119185 (patch)
tree27ea97f7afbab6ac2e8ffd72a7f33d74dfde1eab /libavcodec/vc1dec.c
parentf8f86f8356cbc37cfc7bc5bcaf62c83450eb0034 (diff)
avcodec/vc1dec: remove the unneeded ()
Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/vc1dec.c')
-rw-r--r--libavcodec/vc1dec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index ac3198e4fd..d1ca2afb4b 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -688,7 +688,7 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data,
int buf_size3;
if (avctx->hwaccel)
buf_start_second_field = start;
- tmp = av_realloc_array(slices, sizeof(*slices), (n_slices+1));
+ tmp = av_realloc_array(slices, sizeof(*slices), n_slices+1);
if (!tmp) {
ret = AVERROR(ENOMEM);
goto err;
@@ -717,7 +717,7 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data,
break;
case VC1_CODE_SLICE: {
int buf_size3;
- tmp = av_realloc_array(slices, sizeof(*slices), (n_slices+1));
+ tmp = av_realloc_array(slices, sizeof(*slices), n_slices+1);
if (!tmp) {
ret = AVERROR(ENOMEM);
goto err;
@@ -752,7 +752,7 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data,
} else { // found field marker, unescape second field
if (avctx->hwaccel)
buf_start_second_field = divider;
- tmp = av_realloc_array(slices, sizeof(*slices), (n_slices+1));
+ tmp = av_realloc_array(slices, sizeof(*slices), n_slices+1);
if (!tmp) {
ret = AVERROR(ENOMEM);
goto err;