diff options
Diffstat (limited to 'libavcodec/g722enc.c')
-rw-r--r-- | libavcodec/g722enc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/g722enc.c b/libavcodec/g722enc.c index 0aa17fb579..3833e36447 100644 --- a/libavcodec/g722enc.c +++ b/libavcodec/g722enc.c @@ -366,9 +366,8 @@ static int g722_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, int nb_samples, out_size, ret; out_size = (frame->nb_samples + 1) / 2; - if ((ret = ff_alloc_packet2(avctx, avpkt, out_size))) { + if ((ret = ff_alloc_packet2(avctx, avpkt, out_size))) return ret; - } nb_samples = frame->nb_samples - (frame->nb_samples & 1); |