mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-08 18:39:54 +00:00
aacparse: ADIF: do not send bogus timestamps, leave to downstream (decoder)
This commit is contained in:
parent
92c80bc879
commit
442ab41a05
1 changed files with 6 additions and 2 deletions
|
@ -664,8 +664,12 @@ gst_aacparse_parse_frame (GstBaseParse * parse, GstBuffer * buffer)
|
|||
}
|
||||
}
|
||||
|
||||
GST_BUFFER_DURATION (buffer) = AAC_FRAME_DURATION (aacparse);
|
||||
GST_BUFFER_TIMESTAMP (buffer) = aacparse->ts;
|
||||
/* ADIF: only send an initial 0 timestamp downstream,
|
||||
* then admit we have no idea and let downstream (decoder) handle it */
|
||||
if (aacparse->header_type != DSPAAC_HEADER_ADIF || !aacparse->ts) {
|
||||
GST_BUFFER_DURATION (buffer) = AAC_FRAME_DURATION (aacparse);
|
||||
GST_BUFFER_TIMESTAMP (buffer) = aacparse->ts;
|
||||
}
|
||||
|
||||
if (GST_CLOCK_TIME_IS_VALID (aacparse->ts))
|
||||
aacparse->ts += GST_BUFFER_DURATION (buffer);
|
||||
|
|
Loading…
Reference in a new issue