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
33203a08
Commit
33203a08
authored
Jun 28, 2019
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/dvdec: correctly set interlaced and tff
parent
c54268ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
dvdec.c
libavcodec/dvdec.c
+10
-3
No files found.
libavcodec/dvdec.c
View file @
33203a08
...
@@ -542,12 +542,19 @@ static int dvvideo_decode_frame(AVCodecContext *avctx, void *data,
...
@@ -542,12 +542,19 @@ static int dvvideo_decode_frame(AVCodecContext *avctx, void *data,
if
((
ret
=
ff_thread_get_buffer
(
avctx
,
&
frame
,
0
))
<
0
)
if
((
ret
=
ff_thread_get_buffer
(
avctx
,
&
frame
,
0
))
<
0
)
return
ret
;
return
ret
;
frame
.
f
->
interlaced_frame
=
1
;
frame
.
f
->
top_field_first
=
0
;
/* Determine the codec's field order from the packet */
/* Determine the codec's field order from the packet */
if
(
*
vsc_pack
==
dv_video_control
)
{
if
(
*
vsc_pack
==
dv_video_control
)
{
frame
.
f
->
top_field_first
=
!
(
vsc_pack
[
3
]
&
0x40
);
if
(
avctx
->
height
==
720
)
{
frame
.
f
->
interlaced_frame
=
0
;
frame
.
f
->
top_field_first
=
0
;
}
else
if
(
avctx
->
height
==
1080
)
{
frame
.
f
->
interlaced_frame
=
1
;
frame
.
f
->
top_field_first
=
(
vsc_pack
[
3
]
&
0x40
)
==
0x40
;
}
else
{
frame
.
f
->
interlaced_frame
=
(
vsc_pack
[
3
]
&
0x10
)
==
0x10
;
frame
.
f
->
top_field_first
=
!
(
vsc_pack
[
3
]
&
0x40
);
}
}
}
s
->
buf
=
buf
;
s
->
buf
=
buf
;
...
...
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