[x265] [PATCH] Fix build warnings in linux

indumathi at multicorewareinc.com indumathi at multicorewareinc.com
Thu Jul 5 14:40:16 CEST 2018


# HG changeset patch
# User indumathi at multicorewareinc.com
# Date 1530793686 -19800
#      Thu Jul 05 17:58:06 2018 +0530
# Node ID f377b028f4a91715372a6241fc80e78a672dbd06
# Parent  d65e3a557a20c0a67dd6dd7ad4cfb4b679ccd937
Fix build warnings in linux

diff -r d65e3a557a20 -r f377b028f4a9 source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp	Thu Jun 14 16:27:32 2018 +0800
+++ b/source/encoder/encoder.cpp	Thu Jul 05 17:58:06 2018 +0530
@@ -4740,9 +4740,8 @@
 void Encoder::readUserSeiFile(x265_sei_payload& seiMsg, int curPoc)
 {
     char line[1024];
-    while (!feof(m_naluFile))
+    while (fgets(line, sizeof(line), m_naluFile))
     {
-        fgets(line, sizeof(line), m_naluFile);
         int poc = atoi(strtok(line, " "));
         char *prefix = strtok(NULL, " ");
         int nalType = atoi(strtok(NULL, "/"));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x265.patch
Type: text/x-patch
Size: 833 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20180705/cfab21d9/attachment.bin>


More information about the x265-devel mailing list