mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
ffmpegdec: do not store timestamp for buffer that will be skipped
Fixes #610481.
This commit is contained in:
parent
51fe46458d
commit
6cf7cadf9b
1 changed files with 3 additions and 3 deletions
|
@ -2441,9 +2441,6 @@ gst_ffmpegdec_chain (GstPad * pad, GstBuffer * inbuf)
|
|||
* interpollation can work. */
|
||||
ffmpegdec->clear_ts = TRUE;
|
||||
|
||||
/* append the unaltered buffer timestamp to list */
|
||||
gst_ts_handler_append (ffmpegdec, inbuf);
|
||||
|
||||
oclass = (GstFFMpegDecClass *) (G_OBJECT_GET_CLASS (ffmpegdec));
|
||||
|
||||
/* do early keyframe check pretty bad to rely on the keyframe flag in the
|
||||
|
@ -2458,6 +2455,9 @@ gst_ffmpegdec_chain (GstPad * pad, GstBuffer * inbuf)
|
|||
ffmpegdec->waiting_for_key = FALSE;
|
||||
}
|
||||
|
||||
/* append the unaltered buffer timestamp to list */
|
||||
gst_ts_handler_append (ffmpegdec, inbuf);
|
||||
|
||||
in_timestamp = GST_BUFFER_TIMESTAMP (inbuf);
|
||||
in_duration = GST_BUFFER_DURATION (inbuf);
|
||||
in_offset = GST_BUFFER_OFFSET (inbuf);
|
||||
|
|
Loading…
Reference in a new issue