[1/6] libopencore-amr: Remove an unused state variable

Message ID 1302682613-20359-1-git-send-email-martin@martin.st
State Committed
Commit 89e7e640f7a29d67b850f170f9cfc9d250a3c1b0
Headers show

Commit Message

Martin Storsjö April 13, 2011, 8:16 a.m.
---
 libavcodec/libopencore-amr.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

Comments

Diego Biurrun April 13, 2011, 9:41 a.m. | #1
On Wed, Apr 13, 2011 at 11:16:48AM +0300, Martin Storsjö wrote:
> ---
>  libavcodec/libopencore-amr.c |    3 ---
>  1 files changed, 0 insertions(+), 3 deletions(-)

OK

Diego

Patch

diff --git a/libavcodec/libopencore-amr.c b/libavcodec/libopencore-amr.c
index 5110d05..e93fb3d 100644
--- 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;