From fd8a31119ab2036ce1853bdee3f0e246ce045e35 Mon Sep 17 00:00:00 2001 From: Victor Gil Date: Thu, 15 Feb 2018 20:51:07 -0300 Subject: [PATCH] - Fixed cgo/ffmpeg/audio.go, was not compiling --- cgo/ffmpeg/audio.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgo/ffmpeg/audio.go b/cgo/ffmpeg/audio.go index fbd676dc..98b9d2fb 100644 --- a/cgo/ffmpeg/audio.go +++ b/cgo/ffmpeg/audio.go @@ -295,7 +295,7 @@ func (self *AudioEncoder) Setup() (err error) { ff.codecCtx.sample_fmt = sampleFormatAV2FF(self.SampleFormat) ff.codecCtx.sample_rate = C.int(self.SampleRate) - ff.codecCtx.bit_rate = C.int64_t(self.Bitrate) + ff.codecCtx.bit_rate = C.int(self.Bitrate) ff.codecCtx.channel_layout = channelLayoutAV2FF(self.ChannelLayout) ff.codecCtx.strict_std_compliance = C.FF_COMPLIANCE_EXPERIMENTAL ff.codecCtx.flags = C.AV_CODEC_FLAG_GLOBAL_HEADER