Permalink
Browse files

use video dimensions if not set height

  • Loading branch information...
wandenberg committed Nov 30, 2011
1 parent 0d6ff9f commit 2432c6536f045f08491b88a9326fcdb702ffb85b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ngx_http_video_thumbextractor_module_utils.c
@@ -86,7 +86,7 @@ ngx_http_video_thumbextractor_get_thumb(ngx_http_video_thumbextractor_loc_conf_t
goto exit;
}
- if ((width == 0) && (height == 0)) {
+ if (height == 0) {
// keep original format
width = pCodecCtx->width;
height = pCodecCtx->height;

0 comments on commit 2432c65

Please sign in to comment.