Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
e5197539
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,发现更多精彩内容 >>
提交
e5197539
编写于
3月 06, 2011
作者:
A
Anton Khirnov
提交者:
Ronald S. Bultje
3月 07, 2011
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
avio: deprecate url_fgetc and remove all it uses
Signed-off-by:
N
Ronald S. Bultje
<
rsbultje@gmail.com
>
上级
655e45e7
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
15 addition
and
15 deletion
+15
-15
libavformat/avio.h
libavformat/avio.h
+2
-4
libavformat/aviobuf.c
libavformat/aviobuf.c
+6
-4
libavformat/mpegts.c
libavformat/mpegts.c
+2
-2
libavformat/oggdec.c
libavformat/oggdec.c
+5
-5
未找到文件。
libavformat/avio.h
浏览文件 @
e5197539
...
...
@@ -426,6 +426,8 @@ attribute_deprecated int url_fclose(AVIOContext *s);
attribute_deprecated
int64_t
url_fseek
(
AVIOContext
*
s
,
int64_t
offset
,
int
whence
);
attribute_deprecated
int
url_fskip
(
AVIOContext
*
s
,
int64_t
offset
);
attribute_deprecated
int64_t
url_ftell
(
AVIOContext
*
s
);
#define URL_EOF (-1)
attribute_deprecated
int
url_fgetc
(
AVIOContext
*
s
);
/**
* @}
*/
...
...
@@ -503,10 +505,6 @@ int av_url_read_fpause(AVIOContext *h, int pause);
int64_t
av_url_read_fseek
(
AVIOContext
*
h
,
int
stream_index
,
int64_t
timestamp
,
int
flags
);
#define URL_EOF (-1)
/** @note return URL_EOF (-1) if EOF */
int
url_fgetc
(
AVIOContext
*
s
);
/** @warning currently size is limited */
#ifdef __GNUC__
int
url_fprintf
(
AVIOContext
*
s
,
const
char
*
fmt
,
...)
__attribute__
((
__format__
(
__printf__
,
2
,
3
)));
...
...
libavformat/aviobuf.c
浏览文件 @
e5197539
...
...
@@ -541,6 +541,7 @@ int avio_r8(AVIOContext *s)
return
0
;
}
#if FF_API_OLD_AVIO
int
url_fgetc
(
AVIOContext
*
s
)
{
if
(
s
->
buf_ptr
>=
s
->
buf_end
)
...
...
@@ -549,6 +550,7 @@ int url_fgetc(AVIOContext *s)
return
*
s
->
buf_ptr
++
;
return
URL_EOF
;
}
#endif
int
avio_read
(
AVIOContext
*
s
,
unsigned
char
*
buf
,
int
size
)
{
...
...
@@ -921,16 +923,16 @@ char *url_fgets(AVIOContext *s, char *buf, int buf_size)
int
c
;
char
*
q
;
c
=
url_fgetc
(
s
);
if
(
c
==
EOF
)
c
=
avio_r8
(
s
);
if
(
url_feof
(
s
)
)
return
NULL
;
q
=
buf
;
for
(;;)
{
if
(
c
==
EOF
||
c
==
'\n'
)
if
(
url_feof
(
s
)
||
c
==
'\n'
)
break
;
if
((
q
-
buf
)
<
buf_size
-
1
)
*
q
++
=
c
;
c
=
url_fgetc
(
s
);
c
=
avio_r8
(
s
);
}
if
(
buf_size
>
0
)
*
q
=
'\0'
;
...
...
libavformat/mpegts.c
浏览文件 @
e5197539
...
...
@@ -1312,8 +1312,8 @@ static int mpegts_resync(AVFormatContext *s)
int
c
,
i
;
for
(
i
=
0
;
i
<
MAX_RESYNC_SIZE
;
i
++
)
{
c
=
url_fgetc
(
pb
);
if
(
c
<
0
)
c
=
avio_r8
(
pb
);
if
(
url_feof
(
pb
)
)
return
-
1
;
if
(
c
==
0x47
)
{
avio_seek
(
pb
,
-
1
,
SEEK_CUR
);
...
...
libavformat/oggdec.c
浏览文件 @
e5197539
...
...
@@ -218,8 +218,8 @@ ogg_read_page (AVFormatContext * s, int *str)
sync
[(
sp
+
2
)
&
3
]
==
'g'
&&
sync
[(
sp
+
3
)
&
3
]
==
'S'
)
break
;
c
=
url_fgetc
(
bc
);
if
(
c
<
0
)
c
=
avio_r8
(
bc
);
if
(
url_feof
(
bc
)
)
return
-
1
;
sync
[
sp
++
&
3
]
=
c
;
}
while
(
i
++
<
MAX_PAGE_SIZE
);
...
...
@@ -229,15 +229,15 @@ ogg_read_page (AVFormatContext * s, int *str)
return
-
1
;
}
if
(
url_fgetc
(
bc
)
!=
0
)
/* version */
if
(
avio_r8
(
bc
)
!=
0
)
/* version */
return
-
1
;
flags
=
url_fgetc
(
bc
);
flags
=
avio_r8
(
bc
);
gp
=
avio_rl64
(
bc
);
serial
=
avio_rl32
(
bc
);
seq
=
avio_rl32
(
bc
);
crc
=
avio_rl32
(
bc
);
nsegs
=
url_fgetc
(
bc
);
nsegs
=
avio_r8
(
bc
);
idx
=
ogg_find_stream
(
ogg
,
serial
);
if
(
idx
<
0
){
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录