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
2b4c38d3
Commit
2b4c38d3
authored
Jan 28, 2015
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264: drop some mpegvideo remnants from draw_horiz_band()
This code makes no sense for h.264.
parent
5bf3c0fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
h264.c
libavcodec/h264.c
+1
-11
No files found.
libavcodec/h264.c
View file @
2b4c38d3
...
...
@@ -82,8 +82,7 @@ void ff_h264_draw_horiz_band(const H264Context *h, H264SliceContext *sl,
int
y
,
int
height
)
{
AVCodecContext
*
avctx
=
h
->
avctx
;
const
AVFrame
*
cur
=
&
h
->
cur_pic
.
f
;
AVFrame
*
last
=
sl
->
ref_list
[
0
][
0
].
f
.
data
[
0
]
?
&
sl
->
ref_list
[
0
][
0
].
f
:
NULL
;
const
AVFrame
*
src
=
&
h
->
cur_pic
.
f
;
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
avctx
->
pix_fmt
);
int
vshift
=
desc
->
log2_chroma_h
;
const
int
field_pic
=
h
->
picture_structure
!=
PICT_FRAME
;
...
...
@@ -98,18 +97,9 @@ void ff_h264_draw_horiz_band(const H264Context *h, H264SliceContext *sl,
return
;
if
(
avctx
->
draw_horiz_band
)
{
const
AVFrame
*
src
;
int
offset
[
AV_NUM_DATA_POINTERS
];
int
i
;
if
(
cur
->
pict_type
==
AV_PICTURE_TYPE_B
||
h
->
low_delay
||
(
avctx
->
slice_flags
&
SLICE_FLAG_CODED_ORDER
))
src
=
cur
;
else
if
(
last
)
src
=
last
;
else
return
;
offset
[
0
]
=
y
*
src
->
linesize
[
0
];
offset
[
1
]
=
offset
[
2
]
=
(
y
>>
vshift
)
*
src
->
linesize
[
1
];
...
...
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