projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3973425
)
omxvideoenc: prevent a NULL pointer access
author
Josep Torra
<n770galaxy@gmail.com>
Wed, 27 Feb 2013 09:21:39 +0000
(10:21 +0100)
committer
Josep Torra
<n770galaxy@gmail.com>
Wed, 27 Feb 2013 09:21:39 +0000
(10:21 +0100)
omx/gstomxvideoenc.c
patch
|
blob
|
history
diff --git
a/omx/gstomxvideoenc.c
b/omx/gstomxvideoenc.c
index
967ccac
..
4a4faa4
100644
(file)
--- a/
omx/gstomxvideoenc.c
+++ b/
omx/gstomxvideoenc.c
@@
-601,6
+601,13
@@
_find_nearest_frame (GstOMXVideoEnc * 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;