Commit 0842187e authored by Matthew Waters's avatar Matthew Waters 🐨 Committed by Nicolas Dufresne
Browse files

nvdec: Rely on upstream's value for interlace-mode with hevc

The nvdec API doesn't seem to produce interlacing information with hevc
streams so rely on upstreams value for interlace-mode
parent 88586b41
......@@ -694,10 +694,17 @@ handle_pending_frames (GstNvDec * nvdec)
vinfo = &state->info;
vinfo->fps_n = fps_n;
vinfo->fps_d = fps_d;
if (format->progressive_sequence)
if (format->progressive_sequence) {
/* nvdec doesn't seem to deal with interlacing with hevc so rely
* on upstream's value */
if (format->codec == cudaVideoCodec_HEVC) {
vinfo->interlace_mode = nvdec->input_state->info.interlace_mode;
} else {
vinfo->interlace_mode = GST_VIDEO_INTERLACE_MODE_MIXED;
GST_LOG_OBJECT (decoder,
"Reading colorimetry information full-range %d matrix %d transfer %d primaries %d",
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment