]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vdpau.c
Bump lavc and lavf minor versions for apng muxer and encoder.
[ffmpeg] / libavcodec / vdpau.c
index 475a56c73caa9d0010f4f54f92e3ab974517777e..1656995666da33c72ff8ecd3bf1f2f24f9534b8d 100644 (file)
@@ -468,7 +468,7 @@ void ff_vdpau_h264_picture_complete(H264Context *h)
     render = (struct vdpau_render_state *)h->cur_pic_ptr->f.data[0];
     assert(render);
 
-    render->info.h264.slice_count = h->slice_num;
+    render->info.h264.slice_count = h->current_slice;
     if (render->info.h264.slice_count < 1)
         return;
 
@@ -500,7 +500,7 @@ void ff_vdpau_h264_picture_complete(H264Context *h)
     memcpy(render->info.h264.scaling_lists_8x8[0], h->pps.scaling_matrix8[0], sizeof(render->info.h264.scaling_lists_8x8[0]));
     memcpy(render->info.h264.scaling_lists_8x8[1], h->pps.scaling_matrix8[3], sizeof(render->info.h264.scaling_lists_8x8[0]));
 
-    ff_h264_draw_horiz_band(h, 0, h->avctx->height);
+    ff_h264_draw_horiz_band(h, &h->slice_ctx[0], 0, h->avctx->height);
     render->bitstream_buffers_used = 0;
 }
 #endif /* CONFIG_H264_VDPAU_DECODER */