[MPlayer-cvslog] r37623 - trunk/stream/asf_streaming.c
reimar
subversion at mplayerhq.hu
Mon Feb 8 21:54:49 CET 2016
Author: reimar
Date: Mon Feb 8 21:54:49 2016
New Revision: 37623
Log:
Remove pointless assignments.
a_idx is really set only later.
Avoids Coverity warnings.
Modified:
trunk/stream/asf_streaming.c
Modified: trunk/stream/asf_streaming.c
==============================================================================
--- trunk/stream/asf_streaming.c Mon Feb 8 21:53:56 2016 (r37622)
+++ trunk/stream/asf_streaming.c Mon Feb 8 21:54:49 2016 (r37623)
@@ -337,16 +337,13 @@ static int asf_streaming_parse_header(in
if (asf_ctrl->n_audio) {
// find lowest-bitrate audio stream
a_rate = a_rates[0];
- a_idx = 0;
for (i = 0; i < asf_ctrl->n_audio; i++) {
if (a_rates[i] < a_rate) {
a_rate = a_rates[i];
- a_idx = i;
}
}
if (max_idx(asf_ctrl->n_video, v_rates, bw - a_rate) < 0) {
// both audio and video are not possible, try video only next
- a_idx = -1;
a_rate = 0;
}
}
More information about the MPlayer-cvslog
mailing list