aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/nvdec_h264.c
diff options
context:
space:
mode:
authorPhilip Langdale2018-10-06 20:20:58 -0700
committerPhilip Langdale2019-02-16 08:47:36 -0800
commit83c7ac2e47efd96927127c1c385cdbb5fb53cb02 (patch)
tree81acf95f1623d5d1d15e4d282a4d15f472499b77 /libavcodec/nvdec_h264.c
parente06ccfbe1d33c00d6f1df202a514219c7fdb7c03 (diff)
avcodec/nvdec: Explicitly mark codecs that support 444 output formats
With the introduction of HEVC 444 support, we technically have two codecs that can handle 444 - HEVC and MJPEG. In the case of MJPEG, it can decode, but can only output one of the semi-planar formats. That means we need additional logic to decide whether to use a 444 output format or not.
Diffstat (limited to 'libavcodec/nvdec_h264.c')
-rw-r--r--libavcodec/nvdec_h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/nvdec_h264.c b/libavcodec/nvdec_h264.c
index 25b30329d0..116bd4fb5d 100644
--- a/libavcodec/nvdec_h264.c
+++ b/libavcodec/nvdec_h264.c
@@ -166,7 +166,7 @@ static int nvdec_h264_frame_params(AVCodecContext *avctx,
{
const H264Context *h = avctx->priv_data;
const SPS *sps = h->ps.sps;
- return ff_nvdec_frame_params(avctx, hw_frames_ctx, sps->ref_frame_count + sps->num_reorder_frames);
+ return ff_nvdec_frame_params(avctx, hw_frames_ctx, sps->ref_frame_count + sps->num_reorder_frames, 0);
}
const AVHWAccel ff_h264_nvdec_hwaccel = {