summaryrefslogtreecommitdiff
path: root/libavcodec/ptx.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/ptx.c')
-rw-r--r--libavcodec/ptx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/ptx.c b/libavcodec/ptx.c
index d8798f2e9c..c026d966b0 100644
--- a/libavcodec/ptx.c
+++ b/libavcodec/ptx.c
@@ -20,6 +20,7 @@
*/
#include "libavutil/intreadwrite.h"
+#include "libavcore/imgutils.h"
#include "avcodec.h"
typedef struct PTXContext {
@@ -64,7 +65,7 @@ static int ptx_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
if (p->data[0])
avctx->release_buffer(avctx, p);
- if (avcodec_check_dimensions(avctx, w, h))
+ if (av_check_image_size(w, h, 0, avctx))
return -1;
if (w != avctx->width || h != avctx->height)
avcodec_set_dimensions(avctx, w, h);