git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d74ba68
)
cngenc: Remove dead store
author
Derek Buitenhuis
<derek.buitenhuis@gmail.com>
Thu, 6 Jul 2017 17:54:43 +0000
(13:54 -0400)
committer
Derek Buitenhuis
<derek.buitenhuis@gmail.com>
Fri, 7 Jul 2017 19:29:57 +0000
(15:29 -0400)
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>
libavcodec/cngenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/cngenc.c
b/libavcodec/cngenc.c
index
302c703
..
e185c4a
100644
(file)
--- 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;