From 83dd953a88401f53489f521cf5bcc45e17c135e8 Mon Sep 17 00:00:00 2001 From: Mamadou DIOP Date: Thu, 10 Mar 2016 17:38:40 +0100 Subject: Remove size condition for motion rank estimation --- tinyDAV/src/video/tdav_session_video.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'tinyDAV/src') diff --git a/tinyDAV/src/video/tdav_session_video.c b/tinyDAV/src/video/tdav_session_video.c index d0d65f2..9d52d3e 100755 --- a/tinyDAV/src/video/tdav_session_video.c +++ b/tinyDAV/src/video/tdav_session_video.c @@ -1575,12 +1575,10 @@ static int _tdav_session_video_timer_cb(const void* arg, tsk_timer_id_t timer_id } new_w = TSK_CLAMP(min_w, new_w, max_w); new_h = TSK_CLAMP(min_h, new_h, max_h); - if ((new_w * new_h) < (codec->out.width * codec->out.height)) { // make sure we'll set lower resolution after clipping - TSK_DEBUG_INFO("_tdav_session_video_timer_cb: [[size change based on bandwidth]] new video size: (%u, %u), neg size: (%u, %u)", new_w, new_h, video->neg_width, video->neg_height); - tsk_mutex_lock(video->encoder.h_mutex); - _tdav_session_video_codec_set_int32(video, "out-size", (int32_t)((new_w & 0xFFFF) | (new_h << 16))); - tsk_mutex_unlock(video->encoder.h_mutex); - } + TSK_DEBUG_INFO("_tdav_session_video_timer_cb: [[size change based on bandwidth]] new video size: (%u, %u), neg size: (%u, %u)", new_w, new_h, video->neg_width, video->neg_height); + tsk_mutex_lock(video->encoder.h_mutex); + _tdav_session_video_codec_set_int32(video, "out-size", (int32_t)((new_w & 0xFFFF) | (new_h << 16))); + tsk_mutex_unlock(video->encoder.h_mutex); } } #endif /* BUILD_TYPE_TCH */ -- cgit v1.1