[FFmpeg-cvslog] flashv: use avcodec_set_dimensions()
Michael Niedermayer
git at videolan.org
Tue Nov 13 01:41:21 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Nov 13 00:21:16 2012 +0100| [4b2f696d6e502c46e91dfe184c7b745f78b35a03] | committer: Michael Niedermayer
flashv: use avcodec_set_dimensions()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4b2f696d6e502c46e91dfe184c7b745f78b35a03
---
libavcodec/flashsv.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c
index ee97521..643dab3 100644
--- a/libavcodec/flashsv.c
+++ b/libavcodec/flashsv.c
@@ -304,8 +304,7 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
/* initialize the image size once */
if (avctx->width == 0 && avctx->height == 0) {
- avctx->width = s->image_width;
- avctx->height = s->image_height;
+ avcodec_set_dimensions(avctx, s->image_width, s->image_height);
}
/* check for changes of image width and image height */
More information about the ffmpeg-cvslog
mailing list