summaryrefslogtreecommitdiff
path: root/libavcodec/nvdec_hevc.c
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2018-04-13 19:39:24 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2018-04-15 11:26:46 +0200
commit955fa237f495e3077996c1d282b4ace2a9ad6c15 (patch)
tree40a486bb4f0f31131b52542dd4ac4ae7c55de58a /libavcodec/nvdec_hevc.c
parent8df8a9299364016027825a67534b93cd2b6af473 (diff)
avcodec/nvdec: correctly set intra_pic_flag for h264/hevc
Diffstat (limited to 'libavcodec/nvdec_hevc.c')
-rw-r--r--libavcodec/nvdec_hevc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/nvdec_hevc.c b/libavcodec/nvdec_hevc.c
index e89256d75a..008963130b 100644
--- a/libavcodec/nvdec_hevc.c
+++ b/libavcodec/nvdec_hevc.c
@@ -93,7 +93,7 @@ static int nvdec_hevc_start_frame(AVCodecContext *avctx,
.FrameHeightInMbs = sps->height / 16,
.CurrPicIdx = cf->idx,
.ref_pic_flag = 1,
- .intra_pic_flag = 0,
+ .intra_pic_flag = IS_IRAP(s),
.CodecSpecific.hevc = {
.pic_width_in_luma_samples = sps->width,