Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
ab36dbec
Commit
ab36dbec
authored
Nov 05, 2004
by
gbazin
Browse files
* modules/codec/ffmpeg/*: fix interlaced encoding (top field first + repeat field.)
parent
95b4fba0
Changes
2
Show whitespace changes
Inline
Side-by-side
modules/codec/ffmpeg/encoder.c
View file @
ab36dbec
...
...
@@ -608,11 +608,11 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
/* Let ffmpeg select the frame type */
frame
.
pict_type
=
0
;
frame
.
repeat_pict
=
p_pict
->
i_nb_fields
;
frame
.
repeat_pict
=
2
-
p_pict
->
i_nb_fields
;
#if LIBAVCODEC_BUILD >= 4685
frame
.
interlaced_frame
=
!
p_pict
->
b_progressive
;
frame
.
top_field_first
=
p_pict
->
b_top_field_first
;
frame
.
top_field_first
=
!!
p_pict
->
b_top_field_first
;
#endif
#if LIBAVCODEC_BUILD < 4702
...
...
modules/codec/ffmpeg/video.c
View file @
ab36dbec
...
...
@@ -646,7 +646,7 @@ picture_t *E_(DecodeVideo)( decoder_t *p_dec, block_t **pp_block )
p_pic
->
b_force
=
VLC_TRUE
;
}
p_pic
->
i_nb_fields
=
p_sys
->
p_ff_pic
->
repeat_pict
;
p_pic
->
i_nb_fields
=
2
+
p_sys
->
p_ff_pic
->
repeat_pict
;
#if LIBAVCODEC_BUILD >= 4685
p_pic
->
b_progressive
=
!
p_sys
->
p_ff_pic
->
interlaced_frame
;
p_pic
->
b_top_field_first
=
p_sys
->
p_ff_pic
->
top_field_first
;
...
...
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