21 #include "libavutil/imgutils.h"
26 const char *filename,
void *log_ctx)
33 int frame_decoded, ret = 0;
41 "Failed to open input file '%s'\n", filename);
71 if (ret < 0 || !frame_decoded) {
81 if ((ret =
av_image_alloc(data, linesize, *w, *h, *pix_fmt, 16)) < 0)