From fc63e07135d645af0df8d393aa84c0ae3b7e1924 Mon Sep 17 00:00:00 2001 From: Walter Doekes Date: Tue, 17 Apr 2012 18:57:40 +0000 Subject: 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 --- channels/vcodecs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'channels/vcodecs.c') diff --git a/channels/vcodecs.c b/channels/vcodecs.c index c667fdb13..db591cad3 100644 --- a/channels/vcodecs.c +++ b/channels/vcodecs.c @@ -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; } -- cgit v1.2.3