Skip to content
Snippets Groups Projects
Commit e542177c authored by Sebastian Dröge's avatar Sebastian Dröge :tea:
Browse files

omxvideodec: Make output buffer pointer always initialized

CID 1214605
parent c2e5dca5
No related branches found
No related tags found
No related merge requests found
......@@ -1303,7 +1303,7 @@ gst_omx_video_dec_loop (GstOMXVideoDec * self)
flow_ret = gst_video_decoder_drop_frame (GST_VIDEO_DECODER (self), frame);
frame = NULL;
} else if (!frame && (buf->omx_buf->nFilledLen > 0 || buf->eglimage)) {
GstBuffer *outbuf;
GstBuffer *outbuf = NULL;
/* This sometimes happens at EOS or if the input is not properly framed,
* let's handle it gracefully by allocating a new buffer for the current
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment