diff options
Diffstat (limited to 'video')
-rw-r--r-- | video/decode/vd_lavc.c | 2 | ||||
-rw-r--r-- | video/filter/vf_lavfi.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 6f09908090..ecc9e89962 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -1292,7 +1292,7 @@ static bool decode_frame(struct dec_video *vd) #if LIBAVCODEC_VERSION_MICRO >= 100 mpi->pkt_duration = - mp_pts_from_av(av_frame_get_pkt_duration(ctx->pic), &ctx->codec_timebase); + mp_pts_from_av(ctx->pic->pkt_duration, &ctx->codec_timebase); #endif update_image_params(vd, ctx->pic, &mpi->params); diff --git a/video/filter/vf_lavfi.c b/video/filter/vf_lavfi.c index eefa051e05..7f5561cf57 100644 --- a/video/filter/vf_lavfi.c +++ b/video/filter/vf_lavfi.c @@ -326,7 +326,7 @@ static void get_metadata_from_av_frame(struct vf_instance *vf, AVFrame *frame) if (!p->metadata) p->metadata = talloc_zero(p, struct mp_tags); - mp_tags_copy_from_av_dictionary(p->metadata, av_frame_get_metadata(frame)); + mp_tags_copy_from_av_dictionary(p->metadata, frame->metadata); #endif } |