Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
15a4e8b8
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,发现更多精彩内容 >>
提交
15a4e8b8
编写于
1月 20, 2009
作者:
B
Baptiste Coudurier
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
set correct value for starting line
Originally committed as revision 16698 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
fc941878
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
12 addition
and
5 deletion
+12
-5
libavformat/gxfenc.c
libavformat/gxfenc.c
+10
-3
tests/libav.regression.ref
tests/libav.regression.ref
+2
-2
未找到文件。
libavformat/gxfenc.c
浏览文件 @
15a4e8b8
...
...
@@ -169,7 +169,7 @@ static void gxf_write_packet_header(ByteIOContext *pb, GXFPktType type)
static
int
gxf_write_mpeg_auxiliary
(
ByteIOContext
*
pb
,
GXFStreamContext
*
ctx
)
{
char
buffer
[
1024
];
int
size
;
int
size
,
starting_line
;
if
(
ctx
->
iframes
)
{
ctx
->
p_per_gop
=
ctx
->
pframes
/
ctx
->
iframes
;
...
...
@@ -182,11 +182,18 @@ static int gxf_write_mpeg_auxiliary(ByteIOContext *pb, GXFStreamContext *ctx)
if
(
ctx
->
b_per_gop
>
9
)
ctx
->
b_per_gop
=
9
;
/* ensure value won't take more than one char */
}
if
(
ctx
->
codec
->
height
==
512
||
ctx
->
codec
->
height
==
608
)
starting_line
=
7
;
// VBI
else
if
(
ctx
->
codec
->
height
==
480
)
starting_line
=
20
;
else
starting_line
=
23
;
// default PAL
size
=
snprintf
(
buffer
,
1024
,
"Ver 1
\n
Br %.6f
\n
Ipg 1
\n
Ppi %d
\n
Bpiop %d
\n
"
"Pix 0
\n
Cf %d
\n
Cg %d
\n
Sl
7
\n
nl16 %d
\n
Vi 1
\n
f1 1
\n
"
,
"Pix 0
\n
Cf %d
\n
Cg %d
\n
Sl
%d
\n
nl16 %d
\n
Vi 1
\n
f1 1
\n
"
,
(
float
)
ctx
->
codec
->
bit_rate
,
ctx
->
p_per_gop
,
ctx
->
b_per_gop
,
ctx
->
codec
->
pix_fmt
==
PIX_FMT_YUV422P
?
2
:
1
,
ctx
->
first_gop_closed
==
1
,
ctx
->
codec
->
height
/
16
);
starting_line
,
ctx
->
codec
->
height
/
16
);
put_byte
(
pb
,
TRACK_MPG_AUX
);
put_byte
(
pb
,
size
+
1
);
put_buffer
(
pb
,
(
uint8_t
*
)
buffer
,
size
+
1
);
...
...
tests/libav.regression.ref
浏览文件 @
15a4e8b8
...
...
@@ -27,8 +27,8 @@ af78858062599fcbba049e4a02588a15 *./tests/data/b-libav.mov
913b6199765b1dcba196706574621c2f *./tests/data/b-libav.dv
3600000 ./tests/data/b-libav.dv
./tests/data/b-libav.dv CRC=0x7787e173
a
8d66ca88df1f6ba7806f11224d03adc
*./tests/data/b-libav.gxf
80599
2
./tests/data/b-libav.gxf
a
e41914d985979a7f28a286c3689fae1
*./tests/data/b-libav.gxf
80599
6
./tests/data/b-libav.gxf
./tests/data/b-libav.gxf CRC=0x9c06676e
66a6584f9e83e8ea3af822a3ba71fbbe *./tests/data/b-libav.nut
329264 ./tests/data/b-libav.nut
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录