Use AVFrame.pts instead of deprecated pkt_pts.