[問題]FFMPEG av_open_input_file問題
小弟最近在研究這個東西
想要讀影片進來用的是ffmpeg-0.6.1 用Cygwin編譯照官方設定
visual studio 2008 下測試程式碼
其中使用 av_open_input_file讀檔 會發生 assertion failed
試了很多檔案都一樣 會出現下圖直接當掉
http://img560.imageshack.us/i/assert.png/
程式碼很短
#include <stdio.h>;
#include <string.h>
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
#pragma comment(lib,"ws2_32.lib")
int main(int argc, const char *argv[]) {
AVFormatContext *ic;
av_register_all();
if(av_open_input_file(&ic,"C:\\test.mkv",NULL,0,NULL))
return -1;
}
不知道是甚麼原因
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.44.144.103
推
03/13 00:47, , 1F
03/13 00:47, 1F
→
03/13 01:08, , 2F
03/13 01:08, 2F
→
03/13 01:09, , 3F
03/13 01:09, 3F
※ 編輯: pikachu123 來自: 114.44.144.103 (03/13 01:13)
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章