]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
transcoding: allow to 'not change' the resolution (use 0 value), fixes #2910
authorJaroslav Kysela <perex@perex.cz>
Mon, 1 Jun 2015 17:51:06 +0000 (19:51 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 1 Jun 2015 17:51:06 +0000 (19:51 +0200)
src/profile.c

index 289fae2f2a147ca4064b0ecd1fbb22c3bb3e43b5..3170504684d1c5029fbea2a7e3b2f5d22aa4b352 100644 (file)
@@ -1527,7 +1527,8 @@ const idclass_t profile_transcode_class =
 static int
 profile_transcode_resolution(profile_transcode_t *pro)
 {
-  return pro->pro_resolution >= 240 ? pro->pro_resolution : 240;
+  return pro->pro_resolution == 0 ? 0 :
+         (pro->pro_resolution >= 240 ? pro->pro_resolution : 240);
 }
 
 static int