Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
6c0cf11f
Commit
6c0cf11f
authored
Mar 20, 2016
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/dv: reindent after previous commit
parent
35ba5c42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
dv.c
libavformat/dv.c
+15
-15
No files found.
libavformat/dv.c
View file @
6c0cf11f
...
...
@@ -285,21 +285,21 @@ static int dv_extract_video_info(DVDemuxContext *c, const uint8_t *frame)
AVCodecContext
*
avctx
;
int
apt
,
is16_9
;
avctx
=
c
->
vst
->
codec
;
avpriv_set_pts_info
(
c
->
vst
,
64
,
c
->
sys
->
time_base
.
num
,
c
->
sys
->
time_base
.
den
);
c
->
vst
->
avg_frame_rate
=
av_inv_q
(
c
->
vst
->
time_base
);
/* finding out SAR is a little bit messy */
vsc_pack
=
dv_extract_pack
(
frame
,
dv_video_control
);
apt
=
frame
[
4
]
&
0x07
;
is16_9
=
(
vsc_pack
&&
((
vsc_pack
[
2
]
&
0x07
)
==
0x02
||
(
!
apt
&&
(
vsc_pack
[
2
]
&
0x07
)
==
0x07
)));
c
->
vst
->
sample_aspect_ratio
=
c
->
sys
->
sar
[
is16_9
];
avctx
->
bit_rate
=
av_rescale_q
(
c
->
sys
->
frame_size
,
(
AVRational
)
{
8
,
1
},
c
->
sys
->
time_base
);
avctx
=
c
->
vst
->
codec
;
avpriv_set_pts_info
(
c
->
vst
,
64
,
c
->
sys
->
time_base
.
num
,
c
->
sys
->
time_base
.
den
);
c
->
vst
->
avg_frame_rate
=
av_inv_q
(
c
->
vst
->
time_base
);
/* finding out SAR is a little bit messy */
vsc_pack
=
dv_extract_pack
(
frame
,
dv_video_control
);
apt
=
frame
[
4
]
&
0x07
;
is16_9
=
(
vsc_pack
&&
((
vsc_pack
[
2
]
&
0x07
)
==
0x02
||
(
!
apt
&&
(
vsc_pack
[
2
]
&
0x07
)
==
0x07
)));
c
->
vst
->
sample_aspect_ratio
=
c
->
sys
->
sar
[
is16_9
];
avctx
->
bit_rate
=
av_rescale_q
(
c
->
sys
->
frame_size
,
(
AVRational
)
{
8
,
1
},
c
->
sys
->
time_base
);
return
c
->
sys
->
frame_size
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment