gams软件运行提示division by zero (0)

我用ffmpeg在av_wrie_frame时提示Integer division by zero错误,什么原因造成的啊?_百度知道
我用ffmpeg在av_wrie_frame时提示Integer division by zero错误,什么原因造成的啊?
AVCodec *vCodecEncoder=avcodec_find_encoder(AV_CODEC_ID_MPEG2VIDEO); while (av_read_frame(vFormatContext!\Open Outp char Video_dstPath[Max_Path_Len]=& memcpy(vFormatCtxo-&gt!\ vFormatCtxo-&/);),NULL)); AVFormatContext *vFormatC avcodec_close(vCodecCtx);F我用ffmpeg的av_read_frame读取一个MPG格式的一个包之后!\a,NULL);
if (vP0) {
return -1,sizeof(Video_dstPath)); if(avio_open(&vFormatCtxo-& AVPacket wP),&vPacket)&lt,vCodecEncoder);pause&
} AVCodecContext *vCodecCtx=NULL,这是什么原因造成的啊; vFrame=avcodec_alloc_frame();); avcodec_register_all();b,i);codec_type==AVMEDIA_TYPE_VIDEO)
videoStream=i;W vCodecCtx=vFormatContext-& av_init_packet(&vPacket);pause&:const int Max_Path_Len=128.MPG& } /*AVIO_FLAG_WRITE*/ AVStream *vSint videoStream=-1; AVCodecContext *venCodecC
system(&MediaTest/ if (avcodec_open2(vCodecC avformat_close_input(&vFormatContext)!\=0) {
i++;i& if (av_find_stream_info(vFormatContext)&i=0;streams[i]-&0)
printf(&quot,NULL)&pause&quot.MPG&quot?下面是我的部分源码:/这里写入头文件也失败了 if (avformat_write_header(vFormatCMediaTest/ int i=0;streams[videoStream]-&n&n& vStream=avformat_new_stream(vFormatC); AVPacket vP system(&quot,vC vFormatContext=avformat_alloc_context(),AVIO_FLAG_READ_WRITE/Read Frame%int main(){char Video_Path[Max_Path_Len]=& avformat_free_context(vFormatContext),Video_dstPath,&vPacket)&;oformat=av_guess_format(&mpg& av_register_all();codec-& } AVFrame *vFrame:/
} } avcodec_free_frame(&vFrame);)) {
printf(&pb,Video_P
return -1;F;codec_id),Video_dstP
system(&0),NULL;);vFormatContext-&);
system(&n&nb_ if (avformat_open_input(&vFormatC.stream_index==videoStream)
if (av_write_frame(vFormatC vCodec=avcodec_find_decoder(vCodecCtx-&; AVCodec *vCodec=NULL;
return -1;n& vFormatCtxo=avformat_alloc_context(); AVFormatContext *vFormatC av_init_packet(&wPacket);
printf(& return 0,vFormatCtxo-&pause& for (i=0;Oi++)
if (vFormatContext-&gt,NULL)),直接用av_write_frame将这个包写入到另一个MPG的文件中去,但是却出现Integer division by zero错误
我有更好的答案
0不能做分母。自己找找哪里进行除法操作了。
这我知道,但是我不做除法
向医生提问
完善患者资料:*性别:
其他类似问题
为您推荐:
ffmpeg的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁格式:doc&&&
贡献者:山的那一边
上传时间: 21:13
此文档归属以下专题
暂无相关专题
-------------
新增文件夹...
(多个标签用逗号分隔)
&GAMS及其在物流中的优化应用研究
GAMS是一种面向应用的构造模型的高级计算机语言,融合了关系数据库技术与数学规划理论,使数学模
GAMS是一种面向应用的构造模型的高级计算机语言,融合了关系数据库技术与数学规划理论,使数学模型与数据彼此独立,为用户在模型、算法和数据之间提供了一个便捷的接口。包含了编译器和高效能的求解引擎。
分享到:&&
下载本文档需要登录,并付出相应积分。()
文件大小:576KB
所需积分:& 20
&2006-, All rights reserved. 上传我的文档
 下载
 收藏
本人所有资料均来自网络,请注意保护知识产权,请您下载后勿作商用,只可学习交流使用。 本人如有侵犯作者权益,联系本人删除
 下载此文档
正在努力加载中...
基于GAMS的VRP问题求解研究
下载积分:350
内容提示:基于GAMS的VRP问题求解研究
文档格式:PDF|
浏览次数:11|
上传日期: 15:30:52|
文档星级:
该用户还上传了这些文档
基于GAMS的VRP问题求解研究
官方公共微信

我要回帖

更多关于 安装division by zero 的文章

 

随机推荐