mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
FFmpeg: Update for the deprecated API in 3.2.x
Should be no functional changes.
This commit is contained in:
parent
355ad008a2
commit
3623f32b48
1 changed files with 6 additions and 1 deletions
|
|
@ -350,7 +350,12 @@ int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
|
|||
FFMPEG_INLINE
|
||||
int64_t av_get_pts_from_frame(AVFormatContext *avctx, AVFrame * picture)
|
||||
{
|
||||
int64_t pts = picture->pkt_pts;
|
||||
int64_t pts;
|
||||
#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(55, 34, 100)
|
||||
pts = picture->pts;
|
||||
#else
|
||||
pts = picture->pkt_pts;
|
||||
#endif
|
||||
|
||||
if (pts == AV_NOPTS_VALUE) {
|
||||
pts = picture->pkt_dts;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue