diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2014-09-23 22:55:48 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-09-24 10:11:23 +0300 |
commit | 70e5932f704d8871ce20fb06c072a5df5d325231 (patch) | |
tree | ccce4ce348d9fa12cd9f5b9c1f3eee356f5814d9 | |
parent | 3ea2386cd634e8b7cf50aa990caba052edf44d5f (diff) |
flacparse: Only calculate with durations != -1
-rw-r--r-- | gst/audioparsers/gstflacparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/audioparsers/gstflacparse.c b/gst/audioparsers/gstflacparse.c index 6fc92a8a7..51e1bfcbe 100644 --- a/gst/audioparsers/gstflacparse.c +++ b/gst/audioparsers/gstflacparse.c @@ -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; |