diff options
author | wm4 <wm4@nowhere> | 2017-10-30 13:36:44 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-10-30 13:36:44 +0100 |
commit | d6ebb2df47fa2827aecdcf236a234cd2fe74fe2c (patch) | |
tree | e4a37397aab422549250e021ff0dd9f70beae089 /video/decode | |
parent | 4f51326c28075b7b57ec21c201f71757fe77a000 (diff) | |
download | mpv-d6ebb2df47fa2827aecdcf236a234cd2fe74fe2c.tar.bz2 mpv-d6ebb2df47fa2827aecdcf236a234cd2fe74fe2c.tar.xz |
Get rid of deprecated AVFrame accessors
Fist we were required to use them for ABI compat. reasons (and other
BS), now they're deprecated and we're supposed to access them directly
again.
Diffstat (limited to 'video/decode')
-rw-r--r-- | video/decode/vd_lavc.c | 2 |
1 files changed, 1 insertions, 1 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); |