After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 681454 - [0.11] Should enforce memory alignment in video encoders and audio encoders/decoders
[0.11] Should enforce memory alignment in video encoders and audio encoders/d...
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-libav
0.11.x
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on: 680796
Blocks:
 
 
Reported: 2012-08-08 14:46 UTC by Sebastian Dröge (slomo)
Modified: 2013-07-17 12:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastian Dröge (slomo) 2012-08-08 14:46:02 UTC
+++ This bug was initially created as a clone of Bug #680796 +++

AVPacket memory needs to be 32-byte aligned at least and needs to have FF_INPUT_BUFFER_PADDING_SIZE zero-padding at the end. AVFrame needs to have 32-byte aligned memory addresses in every AVFrame.data[] element, and also needs to use avcodec_align_dimensions2() to get the allocated width/height/linesize/etc

The video decoder does all that.
Comment 1 Edward Hervey 2013-07-17 12:01:50 UTC
This was fixed by the following commit:

commit 83f57519b4cc0a46e882110e6cbc5f4a4591b4e1
Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>
Date:   Fri Jun 15 16:37:19 2012 +0200

    ffmpegvidenc: Handle allocation queries and improve the padding/direct-rendering handling