pFrame_h264->pts = i++; 这边的pts值要不停增加
/* encode the image */
ret = avcodec_encode_video2(pCodecCtx_h264, &pkt, pFrame_h264, &got_output);
/* encode the image */
ret = avcodec_encode_video2(pCodecCtx_h264, &pkt, pFrame_h264, &got_output);