GNOME Bugzilla – Bug 681971
[0.10] videodecoder: fix invalid timestamp handling
Last modified: 2012-08-16 10:21:23 UTC
Created attachment 221348 [details] [review] Fix the invalid timestamp assigning. This is an issue with gst-plugins-base, git version of 0.10 . Fix frame->pts calculation if buffers come with DTS and were reordered. If the videodecoders(subclassed from VideoDecoder) perform gst_adapter_flush() instead of gst_video_decoder_add_to_frame() (it might not be the correct way to do :)..), the input buffer timestamp in VideoDecoder might be invalid .Which will leads to invalid timestamp value in reorderd_pts. An extra checking with GST_CLOCK_TIME_IS_VALID is enough to fix this issue.
commit 9105eb7cfd7707cbbbacb8c8cfdeac0d94044d9b Author: Sreerenj Balachandran <sreerenj.balachandran@intel.com> Date: Thu Aug 16 11:00:18 2012 +0300 videodecoder: correcting PTS calculation of frame. --assign the reorderd_pts to frame->pts iff it is a VALID timestamp.