摘要: 转自:http://blog.chinaunix.net/uid-20718335-id-3026906.html,尊重原创1 AVPackettypedef struct AVPacket { /** * Presentation timestamp in AVStream->time_base units; the time at which * the decompressed packet will be presented to the user. * Can be AV_NOPTS_VALUE if it is not stored in the file. * pts MU 阅读全文
posted @ 2012-12-11 14:47 little_star 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.chinaunix.net/space.php?uid=20718335&do=blog&id=3025307,尊重原创1 avcodec_find_decoder()/*** Find a registered decoder with a matching codec ID.** @param id CodecID of the requested decoder* @return A decoder if one was found, NULL otherwise.*/AVCodec *avcodec_find_decoder(enum Co 阅读全文
posted @ 2012-12-11 14:46 little_star 阅读(469) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.chinaunix.net/uid-20718335-id-3024436.html,尊重原创头文件引入方法:extern "C"{#include "libavcodec/avcodec.h"#include "libavformat/avformat.h"#include "libavutil/avutil.h"#include "libavutil/mem.h"#include "libavutil/fifo.h"#include &quo 阅读全文
posted @ 2012-12-11 14:45 little_star 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 错误request for member 'GetByteArrayElements' in something is not a structure or union 或错误too few arguements to function (*env)->GetByteArrayElements 原因:在C的定义中,env是一个两级指针,而在C++的定义中,env是个一级指针 只有C++时才用: jbyte *arr = env-> GetByteArrayElements(jarr, 0); 在C中的写法应该是:jbyte * arr = (*env)-> G 阅读全文
posted @ 2012-12-11 10:39 little_star 阅读(903) 评论(0) 推荐(0) 编辑