projects
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
hwcontext: Perform usual initialisation on derived device contexts
[ffmpeg.git]
/
libavutil
/
hwcontext.c
diff --git
a/libavutil/hwcontext.c
b/libavutil/hwcontext.c
index
2f4ee96
..
048e821
100644
(file)
--- a/
libavutil/hwcontext.c
+++ b/
libavutil/hwcontext.c
@@
-650,6
+650,10
@@
int av_hwdevice_ctx_create_derived(AVBufferRef **dst_ref_ptr,
goto fail;
done:
+ ret = av_hwdevice_ctx_init(dst_ref);
+ if (ret < 0)
+ goto fail;
+
*dst_ref_ptr = dst_ref;
return 0;