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
b6e7834a
Commit
b6e7834a
authored
Dec 06, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/mpegvideo_enc: fix linesizes in frame_end()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
26c2e3bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mpegvideo_enc.c
libavcodec/mpegvideo_enc.c
+3
-3
No files found.
libavcodec/mpegvideo_enc.c
View file @
b6e7834a
...
@@ -1497,15 +1497,15 @@ static void frame_end(MpegEncContext *s)
...
@@ -1497,15 +1497,15 @@ static void frame_end(MpegEncContext *s)
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
s
->
avctx
->
pix_fmt
);
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
s
->
avctx
->
pix_fmt
);
int
hshift
=
desc
->
log2_chroma_w
;
int
hshift
=
desc
->
log2_chroma_w
;
int
vshift
=
desc
->
log2_chroma_h
;
int
vshift
=
desc
->
log2_chroma_h
;
s
->
dsp
.
draw_edges
(
s
->
current_picture
.
f
.
data
[
0
],
s
->
linesize
,
s
->
dsp
.
draw_edges
(
s
->
current_picture
.
f
.
data
[
0
],
s
->
current_picture
.
f
.
linesize
[
0
]
,
s
->
h_edge_pos
,
s
->
v_edge_pos
,
s
->
h_edge_pos
,
s
->
v_edge_pos
,
EDGE_WIDTH
,
EDGE_WIDTH
,
EDGE_WIDTH
,
EDGE_WIDTH
,
EDGE_TOP
|
EDGE_BOTTOM
);
EDGE_TOP
|
EDGE_BOTTOM
);
s
->
dsp
.
draw_edges
(
s
->
current_picture
.
f
.
data
[
1
],
s
->
uvlinesize
,
s
->
dsp
.
draw_edges
(
s
->
current_picture
.
f
.
data
[
1
],
s
->
current_picture
.
f
.
linesize
[
1
]
,
s
->
h_edge_pos
>>
hshift
,
s
->
v_edge_pos
>>
vshift
,
s
->
h_edge_pos
>>
hshift
,
s
->
v_edge_pos
>>
vshift
,
EDGE_WIDTH
>>
hshift
,
EDGE_WIDTH
>>
vshift
,
EDGE_WIDTH
>>
hshift
,
EDGE_WIDTH
>>
vshift
,
EDGE_TOP
|
EDGE_BOTTOM
);
EDGE_TOP
|
EDGE_BOTTOM
);
s
->
dsp
.
draw_edges
(
s
->
current_picture
.
f
.
data
[
2
],
s
->
uvlinesize
,
s
->
dsp
.
draw_edges
(
s
->
current_picture
.
f
.
data
[
2
],
s
->
current_picture
.
f
.
linesize
[
2
]
,
s
->
h_edge_pos
>>
hshift
,
s
->
v_edge_pos
>>
vshift
,
s
->
h_edge_pos
>>
hshift
,
s
->
v_edge_pos
>>
vshift
,
EDGE_WIDTH
>>
hshift
,
EDGE_WIDTH
>>
vshift
,
EDGE_WIDTH
>>
hshift
,
EDGE_WIDTH
>>
vshift
,
EDGE_TOP
|
EDGE_BOTTOM
);
EDGE_TOP
|
EDGE_BOTTOM
);
...
...
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