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 /doc | |
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 'doc')
-rw-r--r-- | doc/examples/encode_video.c | 2 | ||||
-rw-r--r-- | doc/examples/muxing.c | 2 | ||||
-rw-r--r-- | doc/examples/vaapi_encode.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/doc/examples/encode_video.c b/doc/examples/encode_video.c index d9ab409908..908eb203d5 100644 --- a/doc/examples/encode_video.c +++ b/doc/examples/encode_video.c @@ -145,7 +145,7 @@ int main(int argc, char **argv) frame->width = c->width; frame->height = c->height; - ret = av_frame_get_buffer(frame, 32); + ret = av_frame_get_buffer(frame, 0); if (ret < 0) { fprintf(stderr, "Could not allocate the video frame data\n"); exit(1); diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c index c1d42303af..bd16486a24 100644 --- a/doc/examples/muxing.c +++ b/doc/examples/muxing.c @@ -396,7 +396,7 @@ static AVFrame *alloc_picture(enum AVPixelFormat pix_fmt, int width, int height) picture->height = height; /* allocate the buffers for the frame data */ - ret = av_frame_get_buffer(picture, 32); + ret = av_frame_get_buffer(picture, 0); if (ret < 0) { fprintf(stderr, "Could not allocate frame data.\n"); exit(1); diff --git a/doc/examples/vaapi_encode.c b/doc/examples/vaapi_encode.c index 98fd5d3b51..707939db37 100644 --- a/doc/examples/vaapi_encode.c +++ b/doc/examples/vaapi_encode.c @@ -172,7 +172,7 @@ int main(int argc, char *argv[]) sw_frame->width = width; sw_frame->height = height; sw_frame->format = AV_PIX_FMT_NV12; - if ((err = av_frame_get_buffer(sw_frame, 32)) < 0) + if ((err = av_frame_get_buffer(sw_frame, 0)) < 0) goto close; if ((err = fread((uint8_t*)(sw_frame->data[0]), size, 1, fin)) <= 0) break; |