mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
svthevcenc: Fix potential use of unitialized variable
In gst_svthevc_enc_propose_allocation if we don't get info from the caps, we'd goto done, which could potentially try to unref and unitialized pool variable. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5476>
This commit is contained in:
parent
e1ca575408
commit
0bc353085f
1 changed files with 1 additions and 1 deletions
|
@ -1501,7 +1501,7 @@ gst_svthevc_enc_propose_allocation (GstVideoEncoder * encoder, GstQuery * query)
|
|||
GstCaps *caps;
|
||||
GstVideoInfo info;
|
||||
GstVideoAlignment video_align;
|
||||
GstBufferPool *pool;
|
||||
GstBufferPool *pool = NULL;
|
||||
GstStructure *config;
|
||||
guint i, size, min, max;
|
||||
|
||||
|
|
Loading…
Reference in a new issue