summaryrefslogtreecommitdiff
path: root/libavcodec/cngenc.c
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2017-07-06 13:54:43 -0400
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2017-07-07 15:29:57 -0400
commitaa2bc61a3e32579567b432590b8a24bee01dcee1 (patch)
treed98561ee8372810178cc871074ddbea8e663f7f8 /libavcodec/cngenc.c
parentd74ba68acf30ec5395cb0c82007cc10c02d2e028 (diff)
downloadffmpeg-aa2bc61a3e32579567b432590b8a24bee01dcee1.tar.gz
cngenc: Remove dead store
ff_lpc_calc_ref_coeffs returns the order it is given and cannot return in error. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec/cngenc.c')
-rw-r--r--libavcodec/cngenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cngenc.c b/libavcodec/cngenc.c
index 302c703f72..e185c4a40a 100644
--- a/libavcodec/cngenc.c
+++ b/libavcodec/cngenc.c
@@ -91,7 +91,7 @@ static int cng_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
} else {
qdbov = 127;
}
- ret = ff_lpc_calc_ref_coefs(&p->lpc, p->samples32, p->order, p->ref_coef);
+ ff_lpc_calc_ref_coefs(&p->lpc, p->samples32, p->order, p->ref_coef);
avpkt->data[0] = qdbov;
for (i = 0; i < p->order; i++)
avpkt->data[1 + i] = p->ref_coef[i] * 127 + 127;