From 5332dabffabe0f031fb536396bc1551cdbecde98 Mon Sep 17 00:00:00 2001 From: lummax Date: Mon, 31 Aug 2015 22:47:29 +0200 Subject: [PATCH] util/frame/video: set alignment to 32 in `av_frame_get_buffer()` In all places where the function `av_frame_get_buffer()` was used on a video frame in the ffmpeg sources the value `32` was used as an alignment. --- src/util/frame/video.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/frame/video.rs b/src/util/frame/video.rs index 1184649..2ca9fb9 100644 --- a/src/util/frame/video.rs +++ b/src/util/frame/video.rs @@ -26,7 +26,7 @@ impl Video { self.set_width(width); self.set_height(height); - av_frame_get_buffer(self.as_mut_ptr(), 1); + av_frame_get_buffer(self.as_mut_ptr(), 32); } }