#include "get_bits.h"
#include "dsputil.h"
#include "libavutil/colorspace.h"
+#include "libavutil/imgutils.h"
//#define DEBUG
while(*p == ',' || isspace(*p))
p++;
}
+ } else if (strncmp("size:", data, 5) == 0) {
+ int w, h;
+ if (sscanf(data + 5, "%dx%d", &w, &h) == 2 &&
+ av_image_check_size(w, h, 0, avctx) >= 0)
+ avcodec_set_dimensions(avctx, w, h);
}
data += pos;