Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
b631fba9
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,发现更多精彩内容 >>
提交
b631fba9
编写于
10月 02, 2011
作者:
J
Justin Ruggles
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
avformat: add AVInputFormat flag AVFMT_NO_BYTE_SEEK.
This will prevent seeking by bytes for formats that cannot handle this.
上级
050e20ae
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
8 addition
and
2 deletion
+8
-2
doc/APIchanges
doc/APIchanges
+3
-0
libavformat/avformat.h
libavformat/avformat.h
+2
-1
libavformat/utils.c
libavformat/utils.c
+2
-0
libavformat/version.h
libavformat/version.h
+1
-1
未找到文件。
doc/APIchanges
浏览文件 @
b631fba9
...
...
@@ -13,6 +13,9 @@ libavutil: 2011-04-18
API changes, most recent first:
2011-xx-xx - xxxxxxx - lavf 53.9.0
Add AVFMT_NO_BYTE_SEEK AVInputFormat flag.
2011-10-12 - lavu 51.12.0
AVOptions API rewrite.
...
...
libavformat/avformat.h
浏览文件 @
b631fba9
...
...
@@ -274,6 +274,7 @@ typedef struct AVFormatParameters {
#define AVFMT_NOSTREAMS 0x1000
/**< Format does not require any streams */
#define AVFMT_NOBINSEARCH 0x2000
/**< Format does not allow to fallback to binary search via read_timestamp */
#define AVFMT_NOGENSEARCH 0x4000
/**< Format does not allow to fallback to generic search */
#define AVFMT_NO_BYTE_SEEK 0x8000
/**< Format does not allow seeking by bytes */
typedef
struct
AVOutputFormat
{
const
char
*
name
;
...
...
@@ -408,7 +409,7 @@ typedef struct AVInputFormat {
/**
* Can use flags: AVFMT_NOFILE, AVFMT_NEEDNUMBER, AVFMT_SHOW_IDS,
* AVFMT_GENERIC_INDEX, AVFMT_TS_DISCONT, AVFMT_NOBINSEARCH,
* AVFMT_NOGENSEARCH.
* AVFMT_NOGENSEARCH
, AVFMT_NO_BYTE_SEEK
.
*/
int
flags
;
...
...
libavformat/utils.c
浏览文件 @
b631fba9
...
...
@@ -1750,6 +1750,8 @@ int av_seek_frame(AVFormatContext *s, int stream_index, int64_t timestamp, int f
AVStream
*
st
;
if
(
flags
&
AVSEEK_FLAG_BYTE
)
{
if
(
s
->
iformat
->
flags
&
AVFMT_NO_BYTE_SEEK
)
return
-
1
;
ff_read_frame_flush
(
s
);
return
seek_frame_byte
(
s
,
stream_index
,
timestamp
,
flags
);
}
...
...
libavformat/version.h
浏览文件 @
b631fba9
...
...
@@ -24,7 +24,7 @@
#include "libavutil/avutil.h"
#define LIBAVFORMAT_VERSION_MAJOR 53
#define LIBAVFORMAT_VERSION_MINOR
8
#define LIBAVFORMAT_VERSION_MINOR
9
#define LIBAVFORMAT_VERSION_MICRO 0
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录