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

diff --git a/libavcodec/eamad.c b/libavcodec/eamad.c
index 8d6aa62..f201861 100644
--- a/libavcodec/eamad.c
+++ b/libavcodec/eamad.c
@@ -250,10 +250,10 @@ static int decode_frame(AVCodecContext *avctx,
      buf += 16;
if (avctx->width != width || avctx->height != height) {
-        if (av_image_check_size(width, height, 0, avctx) < 0)
-            return -1;
-        avcodec_set_dimensions(avctx, width, height);
          av_frame_unref(&s->last_frame);
+        ret = ff_set_dimensions(avctx, width, height);
+        if (ret < 0)
+            return ret;
      }
if ((ret = ff_get_buffer(avctx, frame, AV_GET_BUFFER_FLAG_REF)) < 0) {

Ok

-Justin

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

Reply via email to