Commit ef91e395 authored by Limin Wang's avatar Limin Wang Committed by Michael Niedermayer

avcodec/vc1dec: remove the unneeded ()

Signed-off-by: 's avatarLimin Wang <lance.lmwang@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent f8f86f83
...@@ -688,7 +688,7 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data, ...@@ -688,7 +688,7 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data,
int buf_size3; int buf_size3;
if (avctx->hwaccel) if (avctx->hwaccel)
buf_start_second_field = start; 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) { if (!tmp) {
ret = AVERROR(ENOMEM); ret = AVERROR(ENOMEM);
goto err; goto err;
...@@ -717,7 +717,7 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data, ...@@ -717,7 +717,7 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data,
break; break;
case VC1_CODE_SLICE: { case VC1_CODE_SLICE: {
int buf_size3; 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) { if (!tmp) {
ret = AVERROR(ENOMEM); ret = AVERROR(ENOMEM);
goto err; goto err;
...@@ -752,7 +752,7 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data, ...@@ -752,7 +752,7 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data,
} else { // found field marker, unescape second field } else { // found field marker, unescape second field
if (avctx->hwaccel) if (avctx->hwaccel)
buf_start_second_field = divider; 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) { if (!tmp) {
ret = AVERROR(ENOMEM); ret = AVERROR(ENOMEM);
goto err; goto err;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment