[x265] [PATCH] Fix build warnings in linux

Ashok Kumar Mishra ashok at multicorewareinc.com
Fri Jul 6 08:32:41 CEST 2018


On Thu, Jul 5, 2018 at 6:10 PM, <indumathi at multicorewareinc.com> wrote:

> # 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, "/"));
>
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
>
>
Pushed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20180706/f2b2836e/attachment.html>


More information about the x265-devel mailing list