Skip to content

Commit

Permalink
videotoolbox: remove deprecated pkt_pts
Browse files Browse the repository at this point in the history
  • Loading branch information
xinzhengzhang committed Nov 10, 2016
1 parent 5a9f076 commit 5beb7cd
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,16 +357,15 @@ void VTDecoderCallback(void *decompressionOutputRefCon,
goto failed;
}

newFrame->pic.pkt_pts = sample_info->pts;
newFrame->pic.pts = sample_info->pts;
newFrame->pic.pkt_dts = sample_info->dts;
newFrame->pic.sample_aspect_ratio.num = sample_info->sar_num;
newFrame->pic.sample_aspect_ratio.den = sample_info->sar_den;
newFrame->serial = sample_info->serial;
newFrame->nextframe = NULL;

if (newFrame->pic.pts != AV_NOPTS_VALUE) {
newFrame->sort = newFrame->pic.pkt_pts;
newFrame->pic.pts = newFrame->pic.pkt_pts;
newFrame->sort = newFrame->pic.pts;
} else {
newFrame->sort = newFrame->pic.pkt_dts;
newFrame->pic.pts = newFrame->pic.pkt_dts;
Expand Down

0 comments on commit 5beb7cd

Please sign in to comment.