Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
71c32f19
F
Ffmpeg
项目概览
小白菜888
/
Ffmpeg
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Ffmpeg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
71c32f19
编写于
10月 01, 2004
作者:
M
Michael Niedermayer
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
do not call (av_)abort()
Originally committed as revision 3544 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
9fe5a7b8
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
10 addition
and
11 deletion
+10
-11
libavformat/avienc.c
libavformat/avienc.c
+2
-2
libavformat/ffm.c
libavformat/ffm.c
+4
-5
libavformat/mpeg.c
libavformat/mpeg.c
+1
-1
libavformat/raw.c
libavformat/raw.c
+1
-1
libavformat/rm.c
libavformat/rm.c
+1
-1
libavformat/yuv4mpeg.c
libavformat/yuv4mpeg.c
+1
-1
未找到文件。
libavformat/avienc.c
浏览文件 @
71c32f19
...
...
@@ -422,7 +422,7 @@ static int avi_write_header(AVFormatContext *s)
put_le32
(
pb
,
0
);
break
;
default:
av_abort
()
;
return
-
1
;
}
end_tag
(
pb
,
strh
);
...
...
@@ -438,7 +438,7 @@ static int avi_write_header(AVFormatContext *s)
}
break
;
default:
av_abort
()
;
return
-
1
;
}
end_tag
(
pb
,
strf
);
...
...
libavformat/ffm.c
浏览文件 @
71c32f19
...
...
@@ -190,7 +190,7 @@ static int ffm_write_header(AVFormatContext *s)
put_le16
(
pb
,
codec
->
frame_size
);
break
;
default:
av_abort
()
;
return
-
1
;
}
/* hack to have real time */
if
(
ffm_nopts
)
...
...
@@ -208,8 +208,7 @@ static int ffm_write_header(AVFormatContext *s)
/* init packet mux */
ffm
->
packet_ptr
=
ffm
->
packet
;
ffm
->
packet_end
=
ffm
->
packet
+
ffm
->
packet_size
-
FFM_HEADER_SIZE
;
if
(
ffm
->
packet_end
<
ffm
->
packet
)
av_abort
();
assert
(
ffm
->
packet_end
>=
ffm
->
packet
);
ffm
->
frame_offset
=
0
;
ffm
->
pts
=
0
;
ffm
->
first_packet
=
1
;
...
...
@@ -340,7 +339,7 @@ static int ffm_read_data(AVFormatContext *s,
get_buffer
(
pb
,
ffm
->
packet
,
ffm
->
packet_size
-
FFM_HEADER_SIZE
);
ffm
->
packet_end
=
ffm
->
packet
+
(
ffm
->
packet_size
-
FFM_HEADER_SIZE
-
fill_size
);
if
(
ffm
->
packet_end
<
ffm
->
packet
)
av_abort
()
;
return
-
1
;
/* if first packet or resynchronization packet, we must
handle it specifically */
if
(
ffm
->
first_packet
||
(
frame_offset
&
0x8000
))
{
...
...
@@ -355,7 +354,7 @@ static int ffm_read_data(AVFormatContext *s,
}
ffm
->
first_packet
=
0
;
if
((
frame_offset
&
0x7ffff
)
<
FFM_HEADER_SIZE
)
av_abort
()
;
return
-
1
;
ffm
->
packet_ptr
=
ffm
->
packet
+
(
frame_offset
&
0x7fff
)
-
FFM_HEADER_SIZE
;
if
(
!
first
)
break
;
...
...
libavformat/mpeg.c
浏览文件 @
71c32f19
...
...
@@ -314,7 +314,7 @@ static int mpeg_mux_init(AVFormatContext *ctx)
s
->
video_bound
++
;
break
;
default:
av_abort
()
;
return
-
1
;
}
}
/* if no SCR, use first stream (audio) */
...
...
libavformat/raw.c
浏览文件 @
71c32f19
...
...
@@ -557,7 +557,7 @@ static int rawvideo_read_packet(AVFormatContext *s, AVPacket *pkt)
packet_size
=
avpicture_get_size
(
st
->
codec
.
pix_fmt
,
width
,
height
);
if
(
packet_size
<
0
)
av_abort
()
;
return
-
1
;
if
(
av_new_packet
(
pkt
,
packet_size
)
<
0
)
return
AVERROR_IO
;
...
...
libavformat/rm.c
浏览文件 @
71c32f19
...
...
@@ -315,7 +315,7 @@ static int rm_write_header(AVFormatContext *s)
stream
->
total_frames
=
stream
->
nb_packets
;
break
;
default:
av_abort
()
;
return
-
1
;
}
}
...
...
libavformat/yuv4mpeg.c
浏览文件 @
71c32f19
...
...
@@ -214,7 +214,7 @@ static int yuv4_read_packet(AVFormatContext *s, AVPacket *pkt)
packet_size
=
avpicture_get_size
(
st
->
codec
.
pix_fmt
,
width
,
height
);
if
(
packet_size
<
0
)
av_abort
()
;
return
-
1
;
if
(
av_new_packet
(
pkt
,
packet_size
)
<
0
)
return
AVERROR_IO
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录