[FFmpeg-cvslog] avcodec/flashsv: stop using deprecated avcodec_set_dimensions

Paul B Mahol git at videolan.org
Tue Nov 5 13:39:39 CET 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Nov  5 12:36:24 2013 +0000| [6e094f702639d150e5829f68fc9e28f1c532414d] | committer: Paul B Mahol

avcodec/flashsv: stop using deprecated avcodec_set_dimensions

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6e094f702639d150e5829f68fc9e28f1c532414d
---

 libavcodec/flashsv.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c
index f9af396..8fbf13b 100644
--- a/libavcodec/flashsv.c
+++ b/libavcodec/flashsv.c
@@ -317,7 +317,8 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
 
     /* initialize the image size once */
     if (avctx->width == 0 && avctx->height == 0) {
-        avcodec_set_dimensions(avctx, s->image_width, s->image_height);
+        if ((ret = ff_set_dimensions(avctx, s->image_width, s->image_height)) < 0)
+            return ret;
     }
 
     /* check for changes of image width and image height */



More information about the ffmpeg-cvslog mailing list