mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/amr*bdec: return only number of consumed bytes
This commit is contained in:
parent
1f1a368169
commit
319e8a49b5
|
@ -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…
Reference in New Issue