<div dir="ltr"><div>I've written a plugin to implement Nvidia cuvid decoding based on the GstVideoDecoder base. I've gotten a few test files to play, but have run into a problem with the old standby of BigBuckBunny (specifically bbb_sunflower_2160p_60fps_normal.mp4).<br><br clear="all"></div><div><div>My code gets called in gst_nv_dec_parse by the base GstVideoDecode, and I pass the information on to cuvidParseVideoData() to parse the input data into frames. It finds TWO frames and so calls my cuvid_frame_parsed callback twice in a row.<br><br></div><div>On the first call, I record the frame that I was given in gst_nv_dec_parse (for later use as an output frame) and call gst_video_decoder_have_frame.<br><br></div><div>On the second call, I've already used the input frame, and now don't know where I'm going to get a second output frame. There doesn't seem to be any way to request one.<br><br></div><div>Technically, I could simply call gst_video_decoder_have_frame twice in a row, but looking at its code, this seems likely to cause a crash as it relies on there being a valid current_frame, and it sets the current_frame to NULL at the end of processing.<br><br></div><div>Any suggestions on how to solve this issue?<br></div><div>-- <br><div class="gmail_signature">Stirling Westrup<br>Programmer, Entrepreneur.<br><a href="https://www.linkedin.com/e/fpf/77228">https://www.linkedin.com/e/fpf/77228</a><br><a href="http://www.linkedin.com/in/swestrup">http://www.linkedin.com/in/swestrup</a><br><a href="http://technaut.livejournal.com">http://technaut.livejournal.com</a><br><a href="http://sourceforge.net/users/stirlingwestrup">http://sourceforge.net/users/stirlingwestrup</a></div>
</div></div></div>