X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fvdpau_h264.c;h=a9d0c8af9e453b6140d29d3fa469995e5ed335c0;hb=8bdcec31116594b07e83a8845b64a5e8172884f2;hp=1736bbd1787f91a7c1e6d1b05a9d22dc65916429;hpb=665e0c10a63d31dd6c7b1fba14db074625d54614;p=ffmpeg diff --git a/libavcodec/vdpau_h264.c b/libavcodec/vdpau_h264.c index 1736bbd1787..a9d0c8af9e4 100644 --- a/libavcodec/vdpau_h264.c +++ b/libavcodec/vdpau_h264.c @@ -198,6 +198,7 @@ static int vdpau_h264_decode_slice(AVCodecContext *avctx, static int vdpau_h264_end_frame(AVCodecContext *avctx) { H264Context *h = avctx->priv_data; + H264SliceContext *sl = &h->slice_ctx[0]; H264Picture *pic = h->cur_pic_ptr; struct vdpau_picture_context *pic_ctx = pic->hwaccel_picture_private; int val; @@ -206,7 +207,7 @@ static int vdpau_h264_end_frame(AVCodecContext *avctx) if (val < 0) return val; - ff_h264_draw_horiz_band(h, 0, h->avctx->height); + ff_h264_draw_horiz_band(h, sl, 0, h->avctx->height); return 0; }