Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
7081620a
Commit
7081620a
authored
Sep 13, 2016
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hwcontext_vdpau: Fix missing subscripts
Also remove the redundant casts which were hiding the error here.
parent
09a145b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
hwcontext_vdpau.c
libavutil/hwcontext_vdpau.c
+2
-2
No files found.
libavutil/hwcontext_vdpau.c
View file @
7081620a
...
@@ -304,7 +304,7 @@ static int vdpau_transfer_data_from(AVHWFramesContext *ctx, AVFrame *dst,
...
@@ -304,7 +304,7 @@ static int vdpau_transfer_data_from(AVHWFramesContext *ctx, AVFrame *dst,
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
data
)
&&
dst
->
data
[
i
];
i
++
)
{
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
data
)
&&
dst
->
data
[
i
];
i
++
)
{
data
[
i
]
=
dst
->
data
[
i
];
data
[
i
]
=
dst
->
data
[
i
];
if
(
dst
->
linesize
[
i
]
<
0
||
(
uint64_t
)
dst
->
linesize
>
UINT32_MAX
)
{
if
(
dst
->
linesize
[
i
]
<
0
||
dst
->
linesize
[
i
]
>
UINT32_MAX
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
av_log
(
ctx
,
AV_LOG_ERROR
,
"The linesize %d cannot be represented as uint32
\n
"
,
"The linesize %d cannot be represented as uint32
\n
"
,
dst
->
linesize
[
i
]);
dst
->
linesize
[
i
]);
...
@@ -355,7 +355,7 @@ static int vdpau_transfer_data_to(AVHWFramesContext *ctx, AVFrame *dst,
...
@@ -355,7 +355,7 @@ static int vdpau_transfer_data_to(AVHWFramesContext *ctx, AVFrame *dst,
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
data
)
&&
src
->
data
[
i
];
i
++
)
{
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
data
)
&&
src
->
data
[
i
];
i
++
)
{
data
[
i
]
=
src
->
data
[
i
];
data
[
i
]
=
src
->
data
[
i
];
if
(
src
->
linesize
[
i
]
<
0
||
(
uint64_t
)
src
->
linesize
>
UINT32_MAX
)
{
if
(
src
->
linesize
[
i
]
<
0
||
src
->
linesize
[
i
]
>
UINT32_MAX
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
av_log
(
ctx
,
AV_LOG_ERROR
,
"The linesize %d cannot be represented as uint32
\n
"
,
"The linesize %d cannot be represented as uint32
\n
"
,
src
->
linesize
[
i
]);
src
->
linesize
[
i
]);
...
...
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