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
This commit is contained in:
parent
3091e20f2d
commit
c0049beaba
@ -23,7 +23,7 @@ impl Audio {
|
|||||||
self.set_samples(samples);
|
self.set_samples(samples);
|
||||||
self.set_channel_layout(layout);
|
self.set_channel_layout(layout);
|
||||||
|
|
||||||
av_frame_get_buffer(self.as_mut_ptr(), 1);
|
av_frame_get_buffer(self.as_mut_ptr(), 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user