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
0aa7875a
Commit
0aa7875a
authored
Oct 31, 2002
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
Originally committed as revision 1126 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
1609f668
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
25 deletions
+3
-25
mpeg12.c
libavcodec/mpeg12.c
+1
-25
mpegvideo.c
libavcodec/mpegvideo.c
+2
-0
No files found.
libavcodec/mpeg12.c
View file @
0aa7875a
...
...
@@ -1613,7 +1613,6 @@ static int mpeg_decode_slice(AVCodecContext *avctx,
for
(;;)
{
clear_blocks
(
s
->
block
[
0
]);
emms_c
();
ret
=
mpeg_decode_mb
(
s
,
s
->
block
);
dprintf
(
"ret=%d
\n
"
,
ret
);
...
...
@@ -1623,30 +1622,7 @@ static int mpeg_decode_slice(AVCodecContext *avctx,
MPV_decode_mb
(
s
,
s
->
block
);
if
(
++
s
->
mb_x
>=
s
->
mb_width
)
{
if
(
avctx
->
draw_horiz_band
&&
(
s
->
num_available_buffers
>=
1
||
(
!
s
->
has_b_frames
))
)
{
UINT8
*
src_ptr
[
3
];
int
y
,
h
,
offset
;
y
=
s
->
mb_y
*
16
;
h
=
s
->
height
-
y
;
if
(
h
>
16
)
h
=
16
;
if
(
s
->
pict_type
==
B_TYPE
)
offset
=
0
;
else
offset
=
y
*
s
->
linesize
;
if
(
s
->
pict_type
==
B_TYPE
||
(
!
s
->
has_b_frames
)){
src_ptr
[
0
]
=
s
->
current_picture
[
0
]
+
offset
;
src_ptr
[
1
]
=
s
->
current_picture
[
1
]
+
(
offset
>>
2
);
src_ptr
[
2
]
=
s
->
current_picture
[
2
]
+
(
offset
>>
2
);
}
else
{
src_ptr
[
0
]
=
s
->
last_picture
[
0
]
+
offset
;
src_ptr
[
1
]
=
s
->
last_picture
[
1
]
+
(
offset
>>
2
);
src_ptr
[
2
]
=
s
->
last_picture
[
2
]
+
(
offset
>>
2
);
}
avctx
->
draw_horiz_band
(
avctx
,
src_ptr
,
s
->
linesize
,
y
,
s
->
width
,
h
);
}
ff_draw_horiz_band
(
s
);
s
->
mb_x
=
0
;
s
->
mb_y
++
;
...
...
libavcodec/mpegvideo.c
View file @
0aa7875a
...
...
@@ -2147,6 +2147,8 @@ void ff_draw_horiz_band(MpegEncContext *s){
src_ptr
[
1
]
=
s
->
last_picture
[
1
]
+
(
offset
>>
2
);
src_ptr
[
2
]
=
s
->
last_picture
[
2
]
+
(
offset
>>
2
);
}
emms_c
();
s
->
avctx
->
draw_horiz_band
(
s
->
avctx
,
src_ptr
,
s
->
linesize
,
y
,
s
->
width
,
h
);
}
...
...
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