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

This commit is contained in:
Paul B Mahol 2022-08-31 18:36:04 +02:00
parent 1f1a368169
commit 319e8a49b5
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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 = {