mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
flacparse: Only calculate with durations != -1
This commit is contained in:
parent
fd3e8c5672
commit
91a3d044f0
1 changed files with 1 additions and 1 deletions
|
@ -1463,7 +1463,7 @@ gst_flac_parse_generate_headers (GstFlacParse * flacparse)
|
|||
gint64 duration;
|
||||
|
||||
if (gst_pad_peer_query_duration (GST_BASE_PARSE_SINK_PAD (flacparse),
|
||||
GST_FORMAT_TIME, &duration)) {
|
||||
GST_FORMAT_TIME, &duration) && duration != -1) {
|
||||
duration = GST_CLOCK_TIME_TO_FRAMES (duration, flacparse->samplerate);
|
||||
|
||||
map.data[17] |= (duration >> 32) & 0xff;
|
||||
|
|
Loading…
Reference in a new issue