Commit 2c993fec authored by Michael Niedermayer's avatar Michael Niedermayer

audio_get_buffer: add assert to ensure nb_extended_buf has a safe value

May silence CID991853
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent fdda9b44
......@@ -478,8 +478,10 @@ static int audio_get_buffer(AVCodecContext *avctx, AVFrame *frame)
av_freep(&frame->extended_buf);
return AVERROR(ENOMEM);
}
} else
} else {
frame->extended_data = frame->data;
av_assert0(frame->nb_extended_buf == 0);
}
for (i = 0; i < FFMIN(planes, AV_NUM_DATA_POINTERS); i++) {
frame->buf[i] = av_buffer_pool_get(pool->pools[0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment