diff options
author | Mamadou DIOP <bossiel@yahoo.fr> | 2016-03-10 17:38:40 +0100 |
---|---|---|
committer | Mamadou DIOP <bossiel@yahoo.fr> | 2016-03-10 17:38:40 +0100 |
commit | 83dd953a88401f53489f521cf5bcc45e17c135e8 (patch) | |
tree | c3ab6671c180687740097e12fb411a6a103ff418 | |
parent | df8878af00e9758ef51c4ed945a74da88f7a1c19 (diff) | |
download | doubango-83dd953a88401f53489f521cf5bcc45e17c135e8.zip doubango-83dd953a88401f53489f521cf5bcc45e17c135e8.tar.gz |
Remove size condition for motion rank estimation
-rwxr-xr-x | tinyDAV/src/video/tdav_session_video.c | 10 |
1 files changed, 4 insertions, 6 deletions
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 */ |