*/
#include "libavutil/intreadwrite.h"
+#include "libavcore/imgutils.h"
#include "bytestream.h"
#include "avcodec.h"
if (s->picture.data[0])
avctx->release_buffer(avctx, &s->picture);
- if (avcodec_check_dimensions(avctx, w, h))
+ if (av_image_check_size(w, h, 0, avctx))
return -1;
if (w != avctx->width || h != avctx->height)
avcodec_set_dimensions(avctx, w, h);