From f30a41a6086eb8c10f66090739a2a4f8491c3c7a Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 8 Feb 2017 09:51:17 +0100 Subject: Stop hardcoding align=32 in av_frame_get_buffer() calls. Use 0, which selects the alignment automatically. --- fftools/ffmpeg.c | 2 +- fftools/ffmpeg_videotoolbox.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'fftools') diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index f697460a30..ad95a0e417 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -182,7 +182,7 @@ static int sub2video_get_blank_frame(InputStream *ist) ist->sub2video.frame->width = ist->dec_ctx->width ? ist->dec_ctx->width : ist->sub2video.w; ist->sub2video.frame->height = ist->dec_ctx->height ? ist->dec_ctx->height : ist->sub2video.h; ist->sub2video.frame->format = AV_PIX_FMT_RGB32; - if ((ret = av_frame_get_buffer(frame, 32)) < 0) + if ((ret = av_frame_get_buffer(frame, 0)) < 0) return ret; memset(frame->data[0], 0, frame->height * frame->linesize[0]); return 0; diff --git a/fftools/ffmpeg_videotoolbox.c b/fftools/ffmpeg_videotoolbox.c index 628fb5e32c..a6b78d0f7d 100644 --- a/fftools/ffmpeg_videotoolbox.c +++ b/fftools/ffmpeg_videotoolbox.c @@ -67,7 +67,7 @@ static int videotoolbox_retrieve_data(AVCodecContext *s, AVFrame *frame) vt->tmp_frame->width = frame->width; vt->tmp_frame->height = frame->height; - ret = av_frame_get_buffer(vt->tmp_frame, 32); + ret = av_frame_get_buffer(vt->tmp_frame, 0); if (ret < 0) return ret; -- cgit v1.2.3