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
6d96c7ea
Commit
6d96c7ea
authored
Oct 17, 2014
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_showinfo: Forward the av_image_get_linesize error
CC: libav-stable@libav.org Bug-Id: CID 1087086
parent
f4017925
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
vf_showinfo.c
libavfilter/vf_showinfo.c
+3
-1
No files found.
libavfilter/vf_showinfo.c
View file @
6d96c7ea
...
...
@@ -78,9 +78,11 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
int
i
,
plane
,
vsub
=
desc
->
log2_chroma_h
;
for
(
plane
=
0
;
frame
->
data
[
plane
]
&&
plane
<
4
;
plane
++
)
{
size_t
linesize
=
av_image_get_linesize
(
frame
->
format
,
frame
->
width
,
plane
);
uint8_t
*
data
=
frame
->
data
[
plane
];
int
h
=
plane
==
1
||
plane
==
2
?
inlink
->
h
>>
vsub
:
inlink
->
h
;
int
linesize
=
av_image_get_linesize
(
frame
->
format
,
frame
->
width
,
plane
);
if
(
linesize
<
0
)
return
linesize
;
for
(
i
=
0
;
i
<
h
;
i
++
)
{
plane_checksum
[
plane
]
=
av_adler32_update
(
plane_checksum
[
plane
],
data
,
linesize
);
...
...
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