[FFmpeg-trac] #8383(avcodec:open): nvenc failure at libavcodec/encode.c:438

FFmpeg trac at avcodec.org
Sun Nov 17 01:21:32 EET 2019


#8383: nvenc failure at libavcodec/encode.c:438
-------------------------------------+-------------------------------------
             Reporter:  ajaraptor    |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  important    |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  nvenc crash  |               Blocked By:
  abort regression                   |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by cehoyos):

 * keywords:  buf failed lbavcodec/encode => nvenc crash abort regression
 * priority:  normal => important
 * status:  new => open


Old description:

> Summary of the bug:
>
> nvenc fails on snapshot build, always with the same error:
>
> Assertion !avpkt->data || avpkt->buf failed at libavcodec/encode.c:438
>
> the bug is NOT present in the last stable version, 4.2.1
>
> the specific code differences in encode.c that seem to be the source of
> the problem are new lines 435-438:
>
> 435 if (!ret)
> 436 // Encoders must always return ref-counted buffers.
> 437 // Side-data only packets have no data and can be not ref-counted.
> 438 av_assert0(!avpkt->data || avpkt->buf);
> 439 return ret;
>
> These lines are NOT present in the 4.2.1 source for libavcodec/encode.c
>
> Log/report files showing two failures using the snapshot build and one
> success (truncated) using the 4.2.1 build are submitted via VideoLAN.
> Also submitted is a linux diff file showing the diffences between the two
> versions of encode.c.

New description:

 Summary of the bug:

 nvenc fails on snapshot build, always with the same error:
 {{{
 Assertion !avpkt->data || avpkt->buf failed at libavcodec/encode.c:438
 }}}
 the bug is NOT present in the last stable version, 4.2.1

 the specific code differences in encode.c that seem to be the source of
 the problem are new lines 435-438:
 {{{
 435 if (!ret)
 436 // Encoders must always return ref-counted buffers.
 437 // Side-data only packets have no data and can be not ref-counted.
 438 av_assert0(!avpkt->data || avpkt->buf);
 439 return ret;
 }}}
 These lines are NOT present in the 4.2.1 source for libavcodec/encode.c

 Log/report files showing two failures using the snapshot build and one
 success (truncated) using the 4.2.1 build are submitted via VideoLAN.
 Also submitted is a linux diff file showing the diffences between the two
 versions of encode.c.

--

Comment:

 Apparently 73ee53f317418a5719f6169e6171b40f90d18321

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8383#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list