On Tue, May 09, 2017 at 03:19:43PM +0200, Nicolas George wrote: > A lot of codecs require aligned frame data, but do not document it. > It can result in crashes with perfectly valid uses of the API. > > Design rationale: > > - requiring frame data to be always aligned would be wasteful; > > - alignment requirements will evolve > (the 16->32 bump is still recent); > > - requiring applications to worry about alignment is not convenient. > > For now, the default alignment is fixed at 5. > > Fix: trac ticket #6349 > Signed-off-by: Nicolas George <geo...@nsup.org> > --- > libavcodec/avcodec.h | 10 +++++++++ > libavcodec/encode.c | 57 > +++++++++++++++++++++++++++++++++++++++++++++++++--- > libavcodec/utils.c | 2 ++ > 3 files changed, 66 insertions(+), 3 deletions(-)
breaks (green stuff on edges) ./ffmpeg -i ~/videos/matrixbench_mpeg2.mpg -an -vframes 5 -vf uspp=4:8 -qscale 1 -y file.avi [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Those who are best at talking, realize last or never when they are wrong.
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel