# HG changeset patch # User reimar # Date 1107461624 0 # Node ID cb261c423a06b1216468e13cbdb3ed7c47dab671 # Parent fdea66294b2601fe122e226fb36bb505b6b1957c fix for streams that do not send a bitrate diff -r fdea66294b26 -r cb261c423a06 libmpdemux/asf_streaming.c --- a/libmpdemux/asf_streaming.c Thu Feb 03 17:35:49 2005 +0000 +++ b/libmpdemux/asf_streaming.c Thu Feb 03 20:13:44 2005 +0000 @@ -153,7 +153,7 @@ extern int video_id; static int max_idx(int s_count, int *s_rates, int bound) { - int i, best = -1, rate = 0; + int i, best = -1, rate = -1; for (i = 0; i < s_count; i++) { if (s_rates[i] > rate && s_rates[i] <= bound) { rate = s_rates[i];