Stop hardcoding align=32 in av_frame_get_buffer() calls.

Use 0, which selects the alignment automatically.
This commit is contained in:
Anton Khirnov 2017-02-08 09:51:17 +01:00
parent 8cfab9fa8c
commit f30a41a608
21 changed files with 23 additions and 23 deletions

View file

@ -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;