From c8cdbdd5436dcecdf585abb344432b09d787389a Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Wed, 7 May 2014 12:04:53 +0200 Subject: [PATCH] allow setting explicit bitrate for video codecs --- coreapi/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/misc.c b/coreapi/misc.c index e3fef7c59..56383fa58 100644 --- a/coreapi/misc.c +++ b/coreapi/misc.c @@ -110,7 +110,7 @@ const char *linphone_core_get_payload_type_description(LinphoneCore *lc, Payload void linphone_core_set_payload_type_bitrate(LinphoneCore *lc, PayloadType *pt, int bitrate){ if (ms_list_find(lc->codecs_conf.audio_codecs, (PayloadType*) pt) || ms_list_find(lc->codecs_conf.video_codecs, (PayloadType*)pt)){ - if (pt->flags & PAYLOAD_TYPE_IS_VBR){ + if (pt->type==PAYLOAD_VIDEO || pt->flags & PAYLOAD_TYPE_IS_VBR){ pt->normal_bitrate=bitrate*1000; pt->flags|=PAYLOAD_TYPE_BITRATE_OVERRIDE; }else{