mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
Avoid cppcheck warnings; removing unused vars and a bit of cleanup.
Patch by: junky Review: https://reviewboard.asterisk.org/r/1743/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@362307 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1131,8 +1131,9 @@ static enum CodecID map_video_format(uint32_t ast_format, int rw)
|
||||
struct _cm *i;
|
||||
|
||||
for (i = video_formats; i->ast_format != 0; i++)
|
||||
if (ast_format & i->ast_format && rw & i->rw && rw & i->rw)
|
||||
if (ast_format & i->ast_format && rw & i->rw) {
|
||||
return i->codec;
|
||||
}
|
||||
return CODEC_ID_NONE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user