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
c7e63198
Commit
c7e63198
authored
Sep 27, 2011
by
Laurent Aimar
Committed by
Janne Grunau
Oct 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bink: Prevent NULL dereferences with missing reference frame
Signed-off-by:
Janne Grunau
<
janne-libav@jannau.net
>
parent
2c6cf139
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
bink.c
libavcodec/bink.c
+5
-3
No files found.
libavcodec/bink.c
View file @
c7e63198
...
...
@@ -950,8 +950,9 @@ static int bink_decode_plane(BinkContext *c, GetBitContext *gb, int plane_idx,
for
(
i
=
0
;
i
<
BINK_NB_SRC
;
i
++
)
read_bundle
(
gb
,
c
,
i
);
ref_start
=
c
->
last
.
data
[
plane_idx
];
ref_end
=
c
->
last
.
data
[
plane_idx
]
ref_start
=
c
->
last
.
data
[
plane_idx
]
?
c
->
last
.
data
[
plane_idx
]
:
c
->
pic
.
data
[
plane_idx
];
ref_end
=
ref_start
+
(
bw
-
1
+
c
->
last
.
linesize
[
plane_idx
]
*
(
bh
-
1
))
*
8
;
for
(
i
=
0
;
i
<
64
;
i
++
)
...
...
@@ -980,7 +981,8 @@ static int bink_decode_plane(BinkContext *c, GetBitContext *gb, int plane_idx,
if
(
by
==
bh
)
break
;
dst
=
c
->
pic
.
data
[
plane_idx
]
+
8
*
by
*
stride
;
prev
=
c
->
last
.
data
[
plane_idx
]
+
8
*
by
*
stride
;
prev
=
(
c
->
last
.
data
[
plane_idx
]
?
c
->
last
.
data
[
plane_idx
]
:
c
->
pic
.
data
[
plane_idx
])
+
8
*
by
*
stride
;
for
(
bx
=
0
;
bx
<
bw
;
bx
++
,
dst
+=
8
,
prev
+=
8
)
{
blk
=
get_value
(
c
,
BINK_SRC_BLOCK_TYPES
);
// 16x16 block type on odd line means part of the already decoded block, so skip it
...
...
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