On Thu, Jul 5, 2018 at 6:10 PM, <[email protected]> wrote:

> # HG changeset patch
> # User [email protected]
> # 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
> [email protected]
> https://mailman.videolan.org/listinfo/x265-devel
>
>
Pushed.
_______________________________________________
x265-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/x265-devel

Reply via email to