NV Codec Decode SDK, Decoder producing no output

I have the same problem as you. To fixed this problem you have to get extradata from demuxer, then decode it to get video stream information:
I modified NvDecoder.cpp as follow in NvDecoder constructor to resolved this problem:

But I had another problem. Can someone help me solve this problem.
This code can run smoothly in debug mode. But when I switch to release, my application is exception when call NVDEC_API_CALL(cuvidParseVideoData(m_hParser, &seq_pkt)). The input variable pDispInfo is NULL when function NvDecoder::HandlePictureDisplay(CUVIDPARSERDISPINFO *pDispInfo) is callback.

Any thoughts or advice from anyone is greatly appreciated.

Thanks

1 Like