projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bb91a1
)
hevc: do not dereference pointer before NULL check in verify_md5()
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 10 Dec 2013 14:42:26 +0000
(15:42 +0100)
committer
Anton Khirnov
<anton@khirnov.net>
Wed, 11 Dec 2013 19:39:54 +0000
(20:39 +0100)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/hevc.c
patch
|
blob
|
history
diff --git
a/libavcodec/hevc.c
b/libavcodec/hevc.c
index
6b935b6
..
b7e7757
100644
(file)
--- a/
libavcodec/hevc.c
+++ b/
libavcodec/hevc.c
@@
-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);