]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vdpau_hevc.c
avcodec/iff: add support for vertical word compression in ILBM
[ffmpeg] / libavcodec / vdpau_hevc.c
index 03c61dc6cc603cf4f9ead6bf16d63c7ef74921d9..ce2610f67f20e8f4120bcf4181dad26af2b0f1f8 100644 (file)
@@ -234,7 +234,7 @@ static int vdpau_hevc_start_frame(AVCodecContext *avctx,
         const HEVCFrame *frame = &h->DPB[i];
         if (frame != h->ref && (frame->flags & (HEVC_FRAME_FLAG_LONG_REF |
                                                 HEVC_FRAME_FLAG_SHORT_REF))) {
-            if (j > 16) {
+            if (j > 15) {
                 av_log(avctx, AV_LOG_WARNING,
                      "VDPAU only supports up to 16 references in the DPB. "
                      "This frame may not be decoded correctly.\n");