You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
libavcodec/utils: Add braces to shut up gcc warnings
libavcodec/utils.c:1050:5: warning: missing braces around initializer [-Wmissing-braces] libavcodec/utils.c:1314:5: warning: missing braces around initializer [-Wmissing-braces]
This commit is contained in:
@@ -1047,7 +1047,7 @@ int attribute_align_arg avcodec_encode_audio(AVCodecContext *avctx,
|
|||||||
const short *samples)
|
const short *samples)
|
||||||
{
|
{
|
||||||
AVPacket pkt;
|
AVPacket pkt;
|
||||||
AVFrame frame0 = { 0 };
|
AVFrame frame0 = { { 0 } };
|
||||||
AVFrame *frame;
|
AVFrame *frame;
|
||||||
int ret, samples_size, got_packet;
|
int ret, samples_size, got_packet;
|
||||||
|
|
||||||
@@ -1311,7 +1311,7 @@ int attribute_align_arg avcodec_decode_audio3(AVCodecContext *avctx, int16_t *sa
|
|||||||
int *frame_size_ptr,
|
int *frame_size_ptr,
|
||||||
AVPacket *avpkt)
|
AVPacket *avpkt)
|
||||||
{
|
{
|
||||||
AVFrame frame = {0};
|
AVFrame frame = { { 0 } };
|
||||||
int ret, got_frame = 0;
|
int ret, got_frame = 0;
|
||||||
|
|
||||||
if (avctx->get_buffer != avcodec_default_get_buffer) {
|
if (avctx->get_buffer != avcodec_default_get_buffer) {
|
||||||
|
Reference in New Issue
Block a user