diff options
author | Edward Hervey <edward@centricular.com> | 2017-11-25 09:41:00 +0100 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2017-12-01 10:53:06 +0100 |
commit | 6925cfd802d328aa9b25fc7314e2b2fc597c68fd (patch) | |
tree | d8ac5280ee9a4af1c76a3179f0cb29afc8fca5bb | |
parent | 9dd7ae8b784e91e02020b568d08a2c2ddd6150f9 (diff) | |
download | gstreamer-plugins-bad-6925cfd802d328aa9b25fc7314e2b2fc597c68fd.tar.gz |
dashdemux: Handle bitrate > 2**31
On very-high connection, we could quite well exceed that. Instead use
gint64 for max-bitrate.
-rw-r--r-- | ext/dash/gstmpdparser.c | 4 | ||||
-rw-r--r-- | ext/dash/gstmpdparser.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index f60c3d59c..40399c993 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -2504,14 +2504,14 @@ gst_mpdparser_get_rep_idx_with_min_bandwidth (GList * Representations) gint gst_mpdparser_get_rep_idx_with_max_bandwidth (GList * Representations, - gint max_bandwidth, gint max_video_width, gint max_video_height, gint + gint64 max_bandwidth, gint max_video_width, gint max_video_height, gint max_video_framerate_n, gint max_video_framerate_d) { GList *list = NULL, *best = NULL; GstRepresentationNode *representation; gint best_bandwidth = 0; - GST_DEBUG ("max_bandwidth = %i", max_bandwidth); + GST_DEBUG ("max_bandwidth = %" G_GINT64_FORMAT, max_bandwidth); if (Representations == NULL) return -1; diff --git a/ext/dash/gstmpdparser.h b/ext/dash/gstmpdparser.h index 04b935e3a..9c78d3f48 100644 --- a/ext/dash/gstmpdparser.h +++ b/ext/dash/gstmpdparser.h @@ -562,7 +562,7 @@ gboolean gst_mpd_client_has_next_period (GstMpdClient *client); gboolean gst_mpd_client_has_previous_period (GstMpdClient * client); /* Representation selection */ -gint gst_mpdparser_get_rep_idx_with_max_bandwidth (GList *Representations, gint max_bandwidth, gint max_video_width, gint max_video_height, gint max_video_framerate_n, gint max_video_framerate_d); +gint gst_mpdparser_get_rep_idx_with_max_bandwidth (GList *Representations, gint64 max_bandwidth, gint max_video_width, gint max_video_height, gint max_video_framerate_n, gint max_video_framerate_d); gint gst_mpdparser_get_rep_idx_with_min_bandwidth (GList * Representations); /* URL management */ |