lavc/amrwbdec: Use av_samples_set_silence().
Suggested-by: James Almer
This commit is contained in:
parent
8b1f07ef51
commit
559c2e96e3
1 changed files with 1 additions and 2 deletions
|
|
@ -1122,8 +1122,7 @@ static int amrwb_decode_frame(AVCodecContext *avctx, void *data,
|
|||
expected_fr_size = ((cf_sizes_wb[ctx->fr_cur_mode] + 7) >> 3) + 1;
|
||||
|
||||
if (ctx->fr_cur_mode == NO_DATA) {
|
||||
for (i = 0; i < frame->nb_samples; i++)
|
||||
buf_out[i] = 0.f;
|
||||
av_samples_set_silence(&frame->data[0], 0, frame->nb_samples, 1, AV_SAMPLE_FMT_FLT);
|
||||
*got_frame_ptr = 1;
|
||||
return expected_fr_size;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue