@@ -485,10 +485,10 @@ func resourceTencentCloudMpsTranscodeTemplateCreate(d *schema.ResourceData, meta
485485 videoTemplateInfo .Codec = helper .String (v .(string ))
486486 }
487487 if v , ok := dMap ["fps" ]; ok {
488- videoTemplateInfo .Fps = helper .IntUint64 (v .(int ))
488+ videoTemplateInfo .Fps = helper .IntInt64 (v .(int ))
489489 }
490490 if v , ok := dMap ["bitrate" ]; ok {
491- videoTemplateInfo .Bitrate = helper .IntUint64 (v .(int ))
491+ videoTemplateInfo .Bitrate = helper .IntInt64 (v .(int ))
492492 }
493493 if v , ok := dMap ["resolution_adaptive" ]; ok {
494494 videoTemplateInfo .ResolutionAdaptive = helper .String (v .(string ))
@@ -517,7 +517,7 @@ func resourceTencentCloudMpsTranscodeTemplateCreate(d *schema.ResourceData, meta
517517 audioTemplateInfo .Codec = helper .String (v .(string ))
518518 }
519519 if v , ok := dMap ["bitrate" ]; ok {
520- audioTemplateInfo .Bitrate = helper .IntUint64 (v .(int ))
520+ audioTemplateInfo .Bitrate = helper .IntInt64 (v .(int ))
521521 }
522522 if v , ok := dMap ["sample_rate" ]; ok {
523523 audioTemplateInfo .SampleRate = helper .IntUint64 (v .(int ))
@@ -534,7 +534,7 @@ func resourceTencentCloudMpsTranscodeTemplateCreate(d *schema.ResourceData, meta
534534 tEHDConfig .Type = helper .String (v .(string ))
535535 }
536536 if v , ok := dMap ["max_video_bitrate" ]; ok {
537- tEHDConfig .MaxVideoBitrate = helper .IntUint64 (v .(int ))
537+ tEHDConfig .MaxVideoBitrate = helper .IntInt64 (v .(int ))
538538 }
539539 request .TEHDConfig = & tEHDConfig
540540 }
@@ -1025,10 +1025,10 @@ func resourceTencentCloudMpsTranscodeTemplateUpdate(d *schema.ResourceData, meta
10251025 videoTemplateInfo .Codec = helper .String (v .(string ))
10261026 }
10271027 if v , ok := dMap ["fps" ]; ok {
1028- videoTemplateInfo .Fps = helper .IntUint64 (v .(int ))
1028+ videoTemplateInfo .Fps = helper .IntInt64 (v .(int ))
10291029 }
10301030 if v , ok := dMap ["bitrate" ]; ok {
1031- videoTemplateInfo .Bitrate = helper .IntUint64 (v .(int ))
1031+ videoTemplateInfo .Bitrate = helper .IntInt64 (v .(int ))
10321032 }
10331033 if v , ok := dMap ["resolution_adaptive" ]; ok {
10341034 videoTemplateInfo .ResolutionAdaptive = helper .String (v .(string ))
@@ -1059,7 +1059,7 @@ func resourceTencentCloudMpsTranscodeTemplateUpdate(d *schema.ResourceData, meta
10591059 audioTemplateInfo .Codec = helper .String (v .(string ))
10601060 }
10611061 if v , ok := dMap ["bitrate" ]; ok {
1062- audioTemplateInfo .Bitrate = helper .IntUint64 (v .(int ))
1062+ audioTemplateInfo .Bitrate = helper .IntInt64 (v .(int ))
10631063 }
10641064 if v , ok := dMap ["sample_rate" ]; ok {
10651065 audioTemplateInfo .SampleRate = helper .IntUint64 (v .(int ))
@@ -1078,7 +1078,7 @@ func resourceTencentCloudMpsTranscodeTemplateUpdate(d *schema.ResourceData, meta
10781078 tEHDConfig .Type = helper .String (v .(string ))
10791079 }
10801080 if v , ok := dMap ["max_video_bitrate" ]; ok {
1081- tEHDConfig .MaxVideoBitrate = helper .IntUint64 (v .(int ))
1081+ tEHDConfig .MaxVideoBitrate = helper .IntInt64 (v .(int ))
10821082 }
10831083 request .TEHDConfig = & tEHDConfig
10841084 }
0 commit comments