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
2be9f03a
Commit
2be9f03a
authored
Dec 05, 2003
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AVFrame.interlaced_frame fixes
Originally committed as revision 2566 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
647b7762
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
h263.c
libavcodec/h263.c
+3
-2
mpegvideo.c
libavcodec/mpegvideo.c
+4
-2
No files found.
libavcodec/h263.c
View file @
2be9f03a
...
...
@@ -2282,7 +2282,7 @@ void mpeg4_encode_picture_header(MpegEncContext * s, int picture_number)
}
put_bits
(
&
s
->
pb
,
3
,
0
);
/* intra dc VLC threshold */
if
(
!
s
->
progressive_sequence
){
put_bits
(
&
s
->
pb
,
1
,
s
->
top_field_first
);
put_bits
(
&
s
->
pb
,
1
,
s
->
current_picture_ptr
->
top_field_first
);
put_bits
(
&
s
->
pb
,
1
,
s
->
alternate_scan
);
}
//FIXME sprite stuff
...
...
@@ -5252,7 +5252,8 @@ static int decode_vol_header(MpegEncContext *s, GetBitContext *gb){
}
}
s
->
progressive_sequence
=
get_bits1
(
gb
)
^
1
;
s
->
progressive_sequence
=
s
->
progressive_frame
=
get_bits1
(
gb
)
^
1
;
if
(
!
get_bits1
(
gb
)
&&
(
s
->
avctx
->
debug
&
FF_DEBUG_PICT_INFO
))
av_log
(
s
->
avctx
,
AV_LOG_INFO
,
"MPEG4 OBMC not supported (very likely buggy encoder)
\n
"
);
/* OBMC Disable */
if
(
vo_ver_id
==
1
)
{
...
...
libavcodec/mpegvideo.c
View file @
2be9f03a
...
...
@@ -401,7 +401,9 @@ int MPV_common_init(MpegEncContext *s)
s
->
y_dc_scale_table
=
s
->
c_dc_scale_table
=
ff_mpeg1_dc_scale_table
;
s
->
chroma_qscale_table
=
ff_default_chroma_qscale_table
;
s
->
chroma_qscale_table
=
ff_default_chroma_qscale_table
;
s
->
progressive_sequence
=
s
->
progressive_frame
=
1
;
y_size
=
(
2
*
s
->
mb_width
+
2
)
*
(
2
*
s
->
mb_height
+
2
);
c_size
=
(
s
->
mb_width
+
2
)
*
(
s
->
mb_height
+
2
);
...
...
@@ -1152,7 +1154,7 @@ alloc:
s
->
current_picture_ptr
=
(
Picture
*
)
pic
;
s
->
current_picture_ptr
->
top_field_first
=
s
->
top_field_first
;
//FIXME use only the vars from current_pic
s
->
current_picture_ptr
->
interlaced_frame
=
!
s
->
progressive_frame
;
s
->
current_picture_ptr
->
interlaced_frame
=
!
s
->
progressive_frame
&&
!
s
->
progressive_sequence
;
}
s
->
current_picture_ptr
->
pict_type
=
s
->
pict_type
;
...
...
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