projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d211e0
)
libopencore-amr: Remove an unused state variable
author
Martin Storsjö
<martin@martin.st>
Tue, 12 Apr 2011 20:58:45 +0000
(23:58 +0300)
committer
Martin Storsjö
<martin@martin.st>
Wed, 13 Apr 2011 09:59:58 +0000
(12:59 +0300)
Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/libopencore-amr.c
patch
|
blob
|
history
diff --git
a/libavcodec/libopencore-amr.c
b/libavcodec/libopencore-amr.c
index
5110d05
..
e93fb3d
100644
(file)
--- a/
libavcodec/libopencore-amr.c
+++ b/
libavcodec/libopencore-amr.c
@@
-234,7
+234,6
@@
AVCodec ff_libopencore_amrnb_encoder = {
#include <opencore-amrwb/if_rom.h>
typedef struct AMRWBContext {
- int frameCount;
void *state;
} AMRWBContext;
@@
-242,7
+241,6
@@
static av_cold int amr_wb_decode_init(AVCodecContext *avctx)
{
AMRWBContext *s = avctx->priv_data;
- s->frameCount = 0;
s->state = D_IF_init();
amr_decode_fix_avctx(avctx);
@@
-278,7
+276,6
@@
static int amr_wb_decode_frame(AVCodecContext *avctx, void *data,
return AVERROR_INVALIDDATA;
}
- s->frameCount++;
D_IF_decode(s->state, buf, data, _good_frame);
*data_size = 320 * 2;
return packet_size;