提交 67c1acf2 编写于 作者: M Michael Niedermayer

lavc/utils: fix 'warning: missing braces around initializer'

Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
上级 169dfe32
......@@ -1295,7 +1295,7 @@ int attribute_align_arg avcodec_encode_audio(AVCodecContext *avctx,
const short *samples)
{
AVPacket pkt;
AVFrame frame0 = { 0 };
AVFrame frame0 = {{0}};
AVFrame *frame;
int ret, samples_size, got_packet;
......@@ -1665,7 +1665,7 @@ int attribute_align_arg avcodec_decode_audio3(AVCodecContext *avctx, int16_t *sa
int *frame_size_ptr,
AVPacket *avpkt)
{
AVFrame frame = {0};
AVFrame frame = {{0}};
int ret, got_frame = 0;
if (avctx->get_buffer != avcodec_default_get_buffer) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册