mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-31 20:48:56 +00:00
omxvideodec: prevent a NULL pointer access
This commit is contained in:
parent
8872afff1d
commit
3973425689
1 changed files with 7 additions and 0 deletions
|
@ -359,6 +359,13 @@ _find_nearest_frame (GstOMXVideoDec * self, GstOMXBuffer * buf)
|
|||
BufferIdentification *id = gst_video_codec_frame_get_user_data (tmp);
|
||||
guint64 diff_ticks, diff_frames;
|
||||
|
||||
/* This happens for frames that were just added but
|
||||
* which were not passed to the component yet. Ignore
|
||||
* them here!
|
||||
*/
|
||||
if (!id)
|
||||
continue;
|
||||
|
||||
if (id->timestamp > best_timestamp)
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue