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
2c19981a
Commit
2c19981a
authored
Apr 02, 2003
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
10l
Originally committed as revision 1725 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
4d2a4834
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
mpegvideo.c
libavcodec/mpegvideo.c
+2
-2
utils.c
libavcodec/utils.c
+3
-3
No files found.
libavcodec/mpegvideo.c
View file @
2c19981a
...
...
@@ -2396,10 +2396,10 @@ static void encode_mb(MpegEncContext *s, int motion_x, int motion_y)
if
(
s
->
codec_id
==
CODEC_ID_MPEG4
){
if
(
!
s
->
mb_intra
){
assert
(
s
->
dquant
==
0
||
s
->
mv_type
!=
MV_TYPE_8X8
);
if
(
s
->
mv_dir
&
MV_DIRECT
)
s
->
dquant
=
0
;
assert
(
s
->
dquant
==
0
||
s
->
mv_type
!=
MV_TYPE_8X8
);
}
}
s
->
qscale
+=
s
->
dquant
;
...
...
libavcodec/utils.c
View file @
2c19981a
...
...
@@ -131,7 +131,7 @@ int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){
DefaultPicOpaque
*
opaque
;
assert
(
pic
->
data
[
0
]
==
NULL
);
assert
(
pic
->
type
==
0
||
pic
->
type
==
FF_TYPE_INTERNAL
);
assert
(
pic
->
type
==
0
||
pic
->
type
==
FF_
BUFFER_
TYPE_INTERNAL
);
if
(
pic
->
opaque
){
opaque
=
(
DefaultPicOpaque
*
)
pic
->
opaque
;
...
...
@@ -181,8 +181,8 @@ int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){
opaque
->
last_pic_num
=
-
256
*
256
*
256
*
64
;
for
(
i
=
0
;
i
<
3
;
i
++
){
int
h_shift
=
i
==
0
?
0
:
h_chroma_shift
;
int
v_shift
=
i
==
0
?
0
:
v_chroma_shift
;
const
int
h_shift
=
i
==
0
?
0
:
h_chroma_shift
;
const
int
v_shift
=
i
==
0
?
0
:
v_chroma_shift
;
pic
->
linesize
[
i
]
=
pixel_size
*
w
>>
h_shift
;
...
...
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