Use AVFrame.pts instead of deprecated pkt_pts.

This commit is contained in:
Anton Khirnov
2016-03-20 07:51:11 +01:00
parent 32c8359093
commit beb62dac62
3 changed files with 3 additions and 5 deletions

View File

@ -228,8 +228,6 @@ static int movie_get_frame(AVFilterLink *outlink)
avcodec_decode_video2(movie->codec_ctx, movie->frame, &frame_decoded, &pkt);
if (frame_decoded) {
if (movie->frame->pkt_pts != AV_NOPTS_VALUE)
movie->frame->pts = movie->frame->pkt_pts;
av_log(outlink->src, AV_LOG_TRACE,
"movie_get_frame(): file:'%s' pts:%"PRId64" time:%f aspect:%d/%d\n",
movie->file_name, movie->frame->pts,