From c0049beabaf831cc0696b7ba42dd6f8353304471 Mon Sep 17 00:00:00 2001 From: lummax Date: Mon, 31 Aug 2015 22:43:46 +0200 Subject: [PATCH] util/frame/audio: set alignment to 0 in `av_frame_get_buffer()` In all places where the function `av_frame_get_buffer()` was used on an audio frame in the ffmpeg sources the value `0` was used as an alignment. Also [1] states the value `0` as the default alignment. [1]: http://www.ffmpeg.org/doxygen/2.7/group__lavu__sampfmts.html#gaa7368bc4e3a366b688e81938ed55eb06 --- src/util/frame/audio.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/frame/audio.rs b/src/util/frame/audio.rs index a30be48..318a53d 100644 --- a/src/util/frame/audio.rs +++ b/src/util/frame/audio.rs @@ -23,7 +23,7 @@ impl Audio { self.set_samples(samples); self.set_channel_layout(layout); - av_frame_get_buffer(self.as_mut_ptr(), 1); + av_frame_get_buffer(self.as_mut_ptr(), 0); } }