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
75c1ed2e
Commit
75c1ed2e
authored
Jul 15, 2015
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffv1enc: Use input frame to set SAR and interlacing
parent
10a9149d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ffv1enc.c
libavcodec/ffv1enc.c
+4
-4
No files found.
libavcodec/ffv1enc.c
View file @
75c1ed2e
...
...
@@ -863,12 +863,12 @@ static void encode_slice_header(FFV1Context *f, FFV1Context *fs)
put_symbol
(
c
,
state
,
f
->
plane
[
j
].
quant_table_index
,
0
);
av_assert0
(
f
->
plane
[
j
].
quant_table_index
==
f
->
avctx
->
context_model
);
}
if
(
!
f
->
avctx
->
coded_
frame
->
interlaced_frame
)
if
(
!
f
->
frame
->
interlaced_frame
)
put_symbol
(
c
,
state
,
3
,
0
);
else
put_symbol
(
c
,
state
,
1
+
!
f
->
avctx
->
coded_
frame
->
top_field_first
,
0
);
put_symbol
(
c
,
state
,
f
->
avctx
->
coded_
frame
->
sample_aspect_ratio
.
num
,
0
);
put_symbol
(
c
,
state
,
f
->
avctx
->
coded_
frame
->
sample_aspect_ratio
.
den
,
0
);
put_symbol
(
c
,
state
,
1
+
!
f
->
frame
->
top_field_first
,
0
);
put_symbol
(
c
,
state
,
f
->
frame
->
sample_aspect_ratio
.
num
,
0
);
put_symbol
(
c
,
state
,
f
->
frame
->
sample_aspect_ratio
.
den
,
0
);
}
static
int
encode_slice
(
AVCodecContext
*
c
,
void
*
arg
)
...
...
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