How to send IMFSample to EVR Media Sink

后端 未结 2 506
野趣味
野趣味 2021-01-21 10:12

I want to use EVR standalone, but i failed sending IMFSample to it. codes list below,

//create the video render 
IMFActivate* pActive = NULL;
hr = MFCreateVideo         


        
2条回答
  •  北荒
    北荒 (楼主)
    2021-01-21 10:27

    When the pVideoSample is allocated, it already has a buffer for your use; you don't need to add any other buffers. In your case, my guess is that the originally allocated buffer was used to render the output - which is this case is empty, and hence there's no image.

提交回复
热议问题