摘要: 解析报文 /** * Parse a packet. * * @param s parser context. 解析器上下文 * @param avctx codec context. 解码器上下文 * @param poutbuf set to pointer to parsed buffer o 阅读全文
posted @ 2021-05-26 16:43 Vzf 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 初始化AVCodecContext /** * Initialize the AVCodecContext to use the given AVCodec. Prior to using this * function the context has to be allocated with av 阅读全文
posted @ 2021-05-26 16:28 Vzf 阅读(640) 评论(0) 推荐(0) 编辑
摘要: 分配解码器上下文 /** * Allocate an AVCodecContext and set its fields to default values. The * resulting struct should be freed with avcodec_free_context(). * 阅读全文
posted @ 2021-05-26 16:10 Vzf 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 查找编码器 AVCodecParserContext *av_parser_init(int codec_id); 实现 AVCodecParserContext *av_parser_init(int codec_id) { AVCodecParserContext *s = NULL; cons 阅读全文
posted @ 2021-05-26 16:00 Vzf 阅读(819) 评论(0) 推荐(0) 编辑
摘要: 实现 实际就是利用了HTTP的分块传输,发送FLV数据,服务器无法知道流长度,所以不会填写Content-Length字段而是携带Transfer-Encoding: chunked字段,这样客户端就会一直接受数据了。 分块传输 编码规则 下面我们来看一下分块传输的编码规则,其实也很简单,同样采用了 阅读全文
posted @ 2021-05-26 14:49 Vzf 阅读(2219) 评论(0) 推荐(0) 编辑