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
7b383bd9
Commit
7b383bd9
authored
Oct 15, 2012
by
Tomas Härdin
Committed by
Michael Niedermayer
Oct 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dvdec: Set top_field_first from FS flag
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
2b4bbd12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
dvdec.c
libavcodec/dvdec.c
+2
-1
No files found.
libavcodec/dvdec.c
View file @
7b383bd9
...
@@ -343,12 +343,13 @@ static int dvvideo_decode_frame(AVCodecContext *avctx,
...
@@ -343,12 +343,13 @@ static int dvvideo_decode_frame(AVCodecContext *avctx,
s
->
picture
.
interlaced_frame
=
1
;
s
->
picture
.
interlaced_frame
=
1
;
s
->
picture
.
top_field_first
=
0
;
s
->
picture
.
top_field_first
=
0
;
/* Determine the codec's sample_aspect ratio from the packet */
/* Determine the codec's sample_aspect ratio
and field order
from the packet */
vsc_pack
=
buf
+
80
*
5
+
48
+
5
;
vsc_pack
=
buf
+
80
*
5
+
48
+
5
;
if
(
*
vsc_pack
==
dv_video_control
)
{
if
(
*
vsc_pack
==
dv_video_control
)
{
apt
=
buf
[
4
]
&
0x07
;
apt
=
buf
[
4
]
&
0x07
;
is16_9
=
(
vsc_pack
[
2
]
&
0x07
)
==
0x02
||
(
!
apt
&&
(
vsc_pack
[
2
]
&
0x07
)
==
0x07
);
is16_9
=
(
vsc_pack
[
2
]
&
0x07
)
==
0x02
||
(
!
apt
&&
(
vsc_pack
[
2
]
&
0x07
)
==
0x07
);
avctx
->
sample_aspect_ratio
=
s
->
sys
->
sar
[
is16_9
];
avctx
->
sample_aspect_ratio
=
s
->
sys
->
sar
[
is16_9
];
s
->
picture
.
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