Opened 4 years ago

#8780 new defect

nvdec gives "No decoder surface left" error.

Reported by: haviet Owned by:
Priority: normal Component: avcodec
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:

My application (not ffmpeg.exe) uses nvdec to decode video streams receiving from IP cameras. Sometimes the error "No decoder surface left" occurs in unpredictable manner. I noticed the error via log files. I read the ticket #7562 but that ticket is different from my case that my app does not use any filter.

How to reproduce:

I could not reproduce the error in ffmpeg but I can reproduce the error by debugging my app in VS IDE. When the app runs normally I do like below:

  • Set a break point inside function "int ff_nvdec_start_frame(AVCodecContext *avctx, AVFrame *frame)".
  • Wait for some seconds.
  • Clear the break point and make the app continue running (F5).
  • Repeat above steps in several times then I should get the error.

When the error occurs, flushing decoder does not help, but resetting decoder could mitigate the symptom.

Snapshot of the break point
https://ibb.co/vxvzW5S

ffmpeg source 4.3., 4.2., ...
built on Windows 10 with nvdec enabled

Change History (0)

Note: See TracTickets for help on using tickets.