diff options
Diffstat (limited to 'video/decode')
-rw-r--r-- | video/decode/dec_video.h | 2 | ||||
-rw-r--r-- | video/decode/vd_lavc.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/video/decode/dec_video.h b/video/decode/dec_video.h index c9513ac3cd..5298a5616f 100644 --- a/video/decode/dec_video.h +++ b/video/decode/dec_video.h @@ -35,7 +35,7 @@ struct dec_video { struct vf_chain *vfilter; // video filter chain struct vo *vo; // (still) needed by video_set/get_colors const struct vd_functions *vd_driver; - struct mp_hwdec_info hwdec_info; // video output hwdec handles + struct mp_hwdec_info *hwdec_info; // video output hwdec handles struct sh_stream *header; char *decoder_desc; diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index de5c1eb672..1cd4503968 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -227,7 +227,7 @@ static struct vd_lavc_hwdec *probe_hwdec(struct dec_video *vd, bool autoprobe, MP_VERBOSE(vd, "Requested hardware decoder not compiled.\n"); return NULL; } - int r = hwdec_probe(hwdec, &vd->hwdec_info, decoder); + int r = hwdec_probe(hwdec, vd->hwdec_info, decoder); if (r == HWDEC_ERR_EMULATED) { if (autoprobe) return NULL; @@ -342,7 +342,7 @@ static void init_avctx(struct dec_video *vd, const char *decoder, if (!lavc_codec) return; - ctx->hwdec_info = &vd->hwdec_info; + ctx->hwdec_info = vd->hwdec_info; ctx->pix_fmt = AV_PIX_FMT_NONE; ctx->hwdec = hwdec; |