git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23e14ee
)
vdpau/chroma: NULL dereference on error
author
Rémi Denis-Courmont
<remi@remlab.net>
Wed, 23 Apr 2014 17:38:04 +0000
(20:38 +0300)
committer
Rémi Denis-Courmont
<remi@remlab.net>
Wed, 23 Apr 2014 17:38:04 +0000
(20:38 +0300)
modules/hw/vdpau/chroma.c
patch
|
blob
|
history
diff --git
a/modules/hw/vdpau/chroma.c
b/modules/hw/vdpau/chroma.c
index
2ac13d7
..
acd9fce
100644
(file)
--- a/
modules/hw/vdpau/chroma.c
+++ b/
modules/hw/vdpau/chroma.c
@@
-324,6
+324,8
@@
static picture_t *VideoExport(filter_t *filter, picture_t *src, picture_t *dst)
void *planes[3];
uint32_t pitches[3];
+ picture_CopyProperties(dst, src);
+
for (int i = 0; i < dst->i_planes; i++)
{
planes[i] = dst->p[i].p_pixels;
@@
-346,7
+348,6
@@
static picture_t *VideoExport(filter_t *filter, picture_t *src, picture_t *dst)
picture_Release(dst);
dst = NULL;
}
- picture_CopyProperties(dst, src);
picture_Release(src);
return dst;
}