You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/amr*bdec: return only number of consumed bytes
This commit is contained in:
@@ -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 = {
|
||||
|
Reference in New Issue
Block a user