diff options
author | Mamadou DIOP <bossiel@yahoo.fr> | 2016-03-06 10:29:55 +0100 |
---|---|---|
committer | Mamadou DIOP <bossiel@yahoo.fr> | 2016-03-06 10:29:55 +0100 |
commit | 8dbf270434e6681e9434854f31e88861c2b3d526 (patch) | |
tree | 0530a8b51443f7121fa5511acea9947338b10bdf /tinyDAV | |
parent | ef7bc3b97c3183c0cd19e02a4977435c78cab1e4 (diff) | |
download | doubango-8dbf270434e6681e9434854f31e88861c2b3d526.zip doubango-8dbf270434e6681e9434854f31e88861c2b3d526.tar.gz |
fix warning (unused variable) when adaptive video size is disabled
Diffstat (limited to 'tinyDAV')
-rwxr-xr-x | tinyDAV/src/video/tdav_session_video.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tinyDAV/src/video/tdav_session_video.c b/tinyDAV/src/video/tdav_session_video.c index cd3f9dd..9345c88 100755 --- a/tinyDAV/src/video/tdav_session_video.c +++ b/tinyDAV/src/video/tdav_session_video.c @@ -1426,7 +1426,7 @@ static int _tdav_session_video_timer_cb(const void* arg, tsk_timer_id_t timer_id if (base->congestion_ctrl_enabled) { tmedia_codec_video_t* codec = tsk_object_ref(TSK_OBJECT(video->encoder.codec)); if (codec && video->started) { - float q1, q2, q3, q4, q5, qavg, cavg, vs_weight; + float q1, q2, q3, q4, q5, qavg, cavg; uint64_t bw_est_kbps; tsk_bool_t cavgneg, update_qavg = tsk_false, update_size = tsk_false; unsigned enc_avg_time; @@ -1471,6 +1471,7 @@ static int _tdav_session_video_timer_cb(const void* arg, tsk_timer_id_t timer_id #if BUILD_TYPE_TCH { unsigned best_enc_time; + float vs_weight; // Check if encoding time is too high or low best_enc_time = 1000 / (codec->out.fps); |