libopencore-amr: fix av_log() argument
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 8 Nov 2012 14:46:51 +0000 (15:46 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 8 Nov 2012 14:46:51 +0000 (15:46 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/libopencore-amr.c

index 62d6806..df038df 100644 (file)
@@ -278,7 +278,7 @@ static int amr_nb_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
     written = Encoder_Interface_Encode(s->enc_state, s->enc_mode, samples,
                                        avpkt->data, 0);
     av_dlog(avctx, "amr_nb_encode_frame encoded %u bytes, bitrate %u, first byte was %#02x\n",
-            written, s->enc_mode, frame[0]);
+            written, s->enc_mode, avpkt->data[0]);
 
     /* Get the next frame pts/duration */
     ff_af_queue_remove(&s->afq, avctx->frame_size, &avpkt->pts,