Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
ab36dbec
Commit
ab36dbec
authored
Nov 05, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/ffmpeg/*: fix interlaced encoding (top field first + repeat field.)
parent
95b4fba0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
modules/codec/ffmpeg/encoder.c
modules/codec/ffmpeg/encoder.c
+2
-2
modules/codec/ffmpeg/video.c
modules/codec/ffmpeg/video.c
+1
-1
No files found.
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