Add support for rocDecCreateDecoder API (#28)
* Add support for rocDecCreateDecoder API * check the decoder config support before initializing the vaapi * rename RocdecDecoderCreateInfo to RocDecoderCreateInfo * fix a typo
This commit is contained in:
@@ -257,7 +257,7 @@ int RocVideoDecoder::HandleVideoSequence(RocdecVideoFormat *pVideoFormat) {
|
||||
}
|
||||
video_format_ = *pVideoFormat;
|
||||
|
||||
RocdecDecoderCreateInfo videoDecodeCreateInfo = { 0 };
|
||||
RocDecoderCreateInfo videoDecodeCreateInfo = { 0 };
|
||||
videoDecodeCreateInfo.CodecType = pVideoFormat->codec;
|
||||
videoDecodeCreateInfo.ChromaFormat = pVideoFormat->chroma_format;
|
||||
videoDecodeCreateInfo.OutputFormat = video_surface_format_;
|
||||
|
||||
Reference in New Issue
Block a user