avcodec/amr*bdec: return only number of consumed bytes

pull/388/head
Paul B Mahol 3 years ago
parent 1f1a368169
commit 319e8a49b5
  1. 2
      libavcodec/amrnbdec.c
  2. 2
      libavcodec/amrwbdec.c

@ -1091,7 +1091,7 @@ static int amrnb_decode_frame(AVCodecContext *avctx, AVFrame *frame,
*got_frame_ptr = 1;
return avpkt->size;
return buf - avpkt->data;
}

@ -1288,7 +1288,7 @@ static int amrwb_decode_frame(AVCodecContext *avctx, AVFrame *frame,
*got_frame_ptr = 1;
return avpkt->size;
return buf - avpkt->data;
}
const FFCodec ff_amrwb_decoder = {

Loading…
Cancel
Save