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
b769cf4b
Commit
b769cf4b
authored
Dec 10, 2013
by
Michael Niedermayer
Committed by
Anton Khirnov
Dec 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hevc: do not dereference pointer before NULL check in verify_md5()
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
3bb91a1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
hevc.c
libavcodec/hevc.c
+3
-1
No files found.
libavcodec/hevc.c
View file @
b769cf4b
...
...
@@ -2765,12 +2765,14 @@ static void print_md5(void *log_ctx, int level, uint8_t md5[16])
static
int
verify_md5
(
HEVCContext
*
s
,
AVFrame
*
frame
)
{
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
frame
->
format
);
int
pixel_shift
=
desc
->
comp
[
0
].
depth_minus1
>
7
;
int
pixel_shift
;
int
i
,
j
;
if
(
!
desc
)
return
AVERROR
(
EINVAL
);
pixel_shift
=
desc
->
comp
[
0
].
depth_minus1
>
7
;
av_log
(
s
->
avctx
,
AV_LOG_DEBUG
,
"Verifying checksum for frame with POC %d: "
,
s
->
poc
);
...
...
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