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 /libavutil/frame.c | |
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 'libavutil/frame.c')
-rw-r--r-- | libavutil/frame.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/frame.c b/libavutil/frame.c index 53581e4862..2e952edd29 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -461,7 +461,7 @@ int av_frame_ref(AVFrame *dst, const AVFrame *src) /* duplicate the frame data if it's not refcounted */ if (!src->buf[0]) { - ret = av_frame_get_buffer(dst, 32); + ret = av_frame_get_buffer(dst, 0); if (ret < 0) return ret; @@ -631,7 +631,7 @@ int av_frame_make_writable(AVFrame *frame) if (frame->hw_frames_ctx) ret = av_hwframe_get_buffer(frame->hw_frames_ctx, &tmp, 0); else - ret = av_frame_get_buffer(&tmp, 32); + ret = av_frame_get_buffer(&tmp, 0); if (ret < 0) return ret; |