Commit 6c1ee1a1 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/h261dec: Fix context initialization sequence

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 595c6335
......@@ -609,11 +609,10 @@ retry:
s->parse_context = pc;
}
if (!s->context_initialized)
if (!s->context_initialized) {
if ((ret = ff_MPV_common_init(s)) < 0)
return ret;
if (!s->context_initialized) {
ret = ff_set_dimensions(avctx, s->width, s->height);
if (ret < 0)
return ret;
......
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