From: hsgwon Date: Wed, 2 Oct 2019 07:54:00 +0000 (+0900) Subject: [MediaTool] Add missed exception for bitDepth (#1051) X-Git-Tag: submit/tizen/20191002.184204~1^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a21030ba86c52cf3ffc4ad89c7c92ef6ee908fe;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [MediaTool] Add missed exception for bitDepth (#1051) * [MediaTool] Add missed exception for bitDepth --- diff --git a/src/Tizen.Multimedia/MediaTool/AudioMediaFormat.cs b/src/Tizen.Multimedia/MediaTool/AudioMediaFormat.cs index e75bc2ed5..845f3f76a 100644 --- a/src/Tizen.Multimedia/MediaTool/AudioMediaFormat.cs +++ b/src/Tizen.Multimedia/MediaTool/AudioMediaFormat.cs @@ -106,7 +106,8 @@ namespace Tizen.Multimedia /// or is set with another channel position. /// /// - /// , , , or is less than zero. + /// , , , or , + /// is less than zero. /// /// 6 public AudioMediaFormat(MediaFormatAudioMimeType mimeType, @@ -150,7 +151,8 @@ namespace Tizen.Multimedia /// or is set with another channel position. /// /// - /// , , , or is less than zero. + /// , , , or , + /// is less than zero. /// /// 6 public AudioMediaFormat(MediaFormatAudioMimeType mimeType, @@ -179,6 +181,11 @@ namespace Tizen.Multimedia throw new ArgumentOutOfRangeException(nameof(bitRate), bitRate, "Bit rate value can't be negative."); } + if (bitDepth < 0) + { + throw new ArgumentOutOfRangeException(nameof(bitDepth), bitDepth, + "Bit depth value can't be negative."); + } ValidationUtil.ValidateEnum(typeof(MediaFormatAacType), aacType, nameof(aacType));