[FFmpeg-cvslog] libx265: Fix 'braces around scalar initializer' warning

Vittorio Giovara git at videolan.org
Wed May 6 22:28:56 CEST 2015


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Fri May  1 15:39:26 2015 +0100| [04070dbca0688ab1e24528ce5c135254a9a79c47] | committer: Vittorio Giovara

libx265: Fix 'braces around scalar initializer' warning

x265 Reordered the x265_picture fields in the commit

https://github.com/videolan/x265/commit/51b1518de2414431f36eac592db15b667c25a7b9#diff-945b5354d8767dfac13334f2d22cf58fR107

Now the first field is an integer and not an array.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=04070dbca0688ab1e24528ce5c135254a9a79c47
---

 libavcodec/libx265.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c
index 2fe7889..36cd0a8 100644
--- a/libavcodec/libx265.c
+++ b/libavcodec/libx265.c
@@ -247,7 +247,7 @@ static int libx265_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
 {
     libx265Context *ctx = avctx->priv_data;
     x265_picture x265pic;
-    x265_picture x265pic_out = { { 0 } };
+    x265_picture x265pic_out = { 0 };
     x265_nal *nal;
     uint8_t *dst;
     int payload = 0;



More information about the ffmpeg-cvslog mailing list