摘要:
解码应用过程:1. 用以下过程应用H264解码器main(){ AVFrame pic; dsputil_static_init(); // 跟踪了很深才发现的,如果不调用,内部算法数据都没初始化 AVCodecContext *pAVCtx = avcodec_alloc_context(); // 创建解码context,返回创建后指针 avcodec_open(pAVCtx, &h264_decoder); bool framegot; while (...) { while (!framegot) { 从pBuf开始解析收集将近1帧数据,长度bytesCollected ... 阅读全文