mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-17 09:12:25 +00:00
Merge pull request #425 from dragos-oancea/mod_rtmp-val-never-read
[mod_rtmp] scan-build: Value stored to 'codec' is never read - rtmp_audio_codec()
This commit is contained in:
commit
22ed11a49d
@ -211,6 +211,7 @@ static inline uint8_t rtmp_audio_codec(int channels, int bits, int rate, rtmp_au
|
|||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
codec |= 1;
|
codec |= 1;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -220,6 +221,7 @@ static inline uint8_t rtmp_audio_codec(int channels, int bits, int rate, rtmp_au
|
|||||||
break;
|
break;
|
||||||
case 16:
|
case 16:
|
||||||
codec |= 2;
|
codec |= 2;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -236,6 +238,7 @@ static inline uint8_t rtmp_audio_codec(int channels, int bits, int rate, rtmp_au
|
|||||||
break;
|
break;
|
||||||
case 44000:
|
case 44000:
|
||||||
codec |= 0xC;
|
codec |= 0xC;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user