1:ffmpeg解码流程 拆包,构建队列,解码,同步,显示 //计算视频Frame的显示时间//获取ptspts = 0;//decodec video frameavcodec_decode_video2(AVFormatContxt*,AVFrame,int*,AVPacket);if( (pts = av_frame_get_best_effort_timestamp(pFrame)) == AV_NOPTS_VALUSE ){ }else{ pts = 0;} pts *= av_q2d…