Skip to content
Snippets Groups Projects
Commit 75ad0371 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Fix for missing decode pitch

parent 240ef52a
No related branches found
No related tags found
1 merge request!152Implements #168 keeping decoding on GPU
Pipeline #16036 passed
...@@ -69,7 +69,7 @@ bool NvPipeDecoder::decode(const ftl::codecs::Packet &pkt, cv::cuda::GpuMat &out ...@@ -69,7 +69,7 @@ bool NvPipeDecoder::decode(const ftl::codecs::Packet &pkt, cv::cuda::GpuMat &out
// No I-Frame yet so don't attempt to decode P-Frames. // No I-Frame yet so don't attempt to decode P-Frames.
if (!seen_iframe_) return false; if (!seen_iframe_) return false;
int rc = NvPipe_Decode(nv_decoder_, pkt.data.data(), pkt.data.size(), tmp_.data, tmp_.cols, tmp_.rows); int rc = NvPipe_Decode(nv_decoder_, pkt.data.data(), pkt.data.size(), tmp_.data, tmp_.cols, tmp_.rows, tmp_.step);
if (rc == 0) LOG(ERROR) << "NvPipe decode error: " << NvPipe_GetError(nv_decoder_); if (rc == 0) LOG(ERROR) << "NvPipe decode error: " << NvPipe_GetError(nv_decoder_);
if (is_float_frame) { if (is_float_frame) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment