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