On 10/27/2013 06:10 AM, Anton Khirnov wrote:
---
  libavcodec/kgv1dec.c |    7 +++----
  1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/libavcodec/kgv1dec.c b/libavcodec/kgv1dec.c
index 1774f36..a5f360c 100644
--- a/libavcodec/kgv1dec.c
+++ b/libavcodec/kgv1dec.c
@@ -61,12 +61,11 @@ static int decode_frame(AVCodecContext *avctx, void *data, 
int *got_frame,
      h = (buf[1] + 1) * 8;
      buf += 2;
- if ((res = av_image_check_size(w, h, 0, avctx)) < 0)
-        return res;
-
      if (w != avctx->width || h != avctx->height) {
          av_frame_unref(&c->prev);
-        avcodec_set_dimensions(avctx, w, h);
+        res = ff_set_dimensions(avctx, w, h);
+        if (res < 0)
+            return res;
      }
maxcnt = w * h;

Ok

-Justin

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to