diff options
author | Anton Khirnov <anton@khirnov.net> | 2017-02-08 09:51:17 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-05-22 14:38:57 +0200 |
commit | f30a41a6086eb8c10f66090739a2a4f8491c3c7a (patch) | |
tree | fcd7dfaa1be12dff576c2e31fa719fc3867b1b34 /libavcodec | |
parent | 8cfab9fa8c1529f3d4db3e7d5b317acdbc08d37d (diff) | |
download | ffmpeg-f30a41a6086eb8c10f66090739a2a4f8491c3c7a.tar.gz |
Stop hardcoding align=32 in av_frame_get_buffer() calls.
Use 0, which selects the alignment automatically.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/asvenc.c | 2 | ||||
-rw-r--r-- | libavcodec/encode.c | 2 | ||||
-rw-r--r-- | libavcodec/libwebpenc_common.c | 2 | ||||
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 2 | ||||
-rw-r--r-- | libavcodec/pngenc.c | 4 | ||||
-rw-r--r-- | libavcodec/tdsc.c | 2 |
6 files changed, 7 insertions, 7 deletions
diff --git a/libavcodec/asvenc.c b/libavcodec/asvenc.c index 3cc94bf91a..c2c940f365 100644 --- a/libavcodec/asvenc.c +++ b/libavcodec/asvenc.c @@ -228,7 +228,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, clone->format = pict->format; clone->width = FFALIGN(pict->width, 16); clone->height = FFALIGN(pict->height, 16); - ret = av_frame_get_buffer(clone, 32); + ret = av_frame_get_buffer(clone, 0); if (ret < 0) { av_frame_free(&clone); return ret; diff --git a/libavcodec/encode.c b/libavcodec/encode.c index 9ed2cf0f59..03d579fd4e 100644 --- a/libavcodec/encode.c +++ b/libavcodec/encode.c @@ -90,7 +90,7 @@ static int pad_last_frame(AVCodecContext *s, AVFrame **dst, const AVFrame *src) frame->channel_layout = src->channel_layout; frame->channels = src->channels; frame->nb_samples = s->frame_size; - ret = av_frame_get_buffer(frame, 32); + ret = av_frame_get_buffer(frame, 0); if (ret < 0) goto fail; diff --git a/libavcodec/libwebpenc_common.c b/libavcodec/libwebpenc_common.c index 21d7adaf56..3c4c3e2294 100644 --- a/libavcodec/libwebpenc_common.c +++ b/libavcodec/libwebpenc_common.c @@ -142,7 +142,7 @@ int ff_libwebp_get_frame(AVCodecContext *avctx, LibWebPContextCommon *s, alt_frame->format = frame->format; if (s->cr_threshold) alt_frame->format = AV_PIX_FMT_YUVA420P; - ret = av_frame_get_buffer(alt_frame, 32); + ret = av_frame_get_buffer(alt_frame, 0); if (ret < 0) goto end; alt_frame->format = frame->format; diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index 50ae57e0a6..d49185c239 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -1044,7 +1044,7 @@ FF_ENABLE_DEPRECATION_WARNINGS s->tmp_frames[i]->width = s->width >> s->brd_scale; s->tmp_frames[i]->height = s->height >> s->brd_scale; - ret = av_frame_get_buffer(s->tmp_frames[i], 32); + ret = av_frame_get_buffer(s->tmp_frames[i], 0); if (ret < 0) return ret; } diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c index 331a0aa687..efcae8c494 100644 --- a/libavcodec/pngenc.c +++ b/libavcodec/pngenc.c @@ -741,7 +741,7 @@ static int apng_encode_frame(AVCodecContext *avctx, const AVFrame *pict, diffFrame->format = pict->format; diffFrame->width = pict->width; diffFrame->height = pict->height; - if ((ret = av_frame_get_buffer(diffFrame, 32)) < 0) + if ((ret = av_frame_get_buffer(diffFrame, 0)) < 0) goto fail; original_bytestream = s->bytestream; @@ -956,7 +956,7 @@ static int encode_apng(AVCodecContext *avctx, AVPacket *pkt, s->prev_frame->format = pict->format; s->prev_frame->width = pict->width; s->prev_frame->height = pict->height; - if ((ret = av_frame_get_buffer(s->prev_frame, 32)) < 0) + if ((ret = av_frame_get_buffer(s->prev_frame, 0)) < 0) return ret; } diff --git a/libavcodec/tdsc.c b/libavcodec/tdsc.c index e9ea41ef55..eaea41c1f5 100644 --- a/libavcodec/tdsc.c +++ b/libavcodec/tdsc.c @@ -484,7 +484,7 @@ static int tdsc_parse_tdsf(AVCodecContext *avctx, int number_tiles) /* Allocate the reference frame if not already done or on size change */ if (init_refframe) { - ret = av_frame_get_buffer(ctx->refframe, 32); + ret = av_frame_get_buffer(ctx->refframe, 0); if (ret < 0) return ret; } |