if frame['media_type'] == 'video':
if last_video_pts is not None and frame['pkt_pts_time'] <= last_video_pts:
print 'Out of order video frame %f (%d) is same as or behind %f (%d)' % (frame['pkt_pts_time'], frame['pkt_pts'], last_video_pts, last_video)
if frame['media_type'] == 'video':
if last_video_pts is not None and frame['pkt_pts_time'] <= last_video_pts:
print 'Out of order video frame %f (%d) is same as or behind %f (%d)' % (frame['pkt_pts_time'], frame['pkt_pts'], last_video_pts, last_video)