Commit 4b2f696d authored by Michael Niedermayer's avatar Michael Niedermayer

flashv: use avcodec_set_dimensions()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0a373c31
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment