mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/h261dec: Fix context initialization sequence
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
595c63357c
commit
6c1ee1a114
|
@ -609,11 +609,10 @@ retry:
|
||||||
s->parse_context = pc;
|
s->parse_context = pc;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!s->context_initialized)
|
if (!s->context_initialized) {
|
||||||
if ((ret = ff_MPV_common_init(s)) < 0)
|
if ((ret = ff_MPV_common_init(s)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
if (!s->context_initialized) {
|
|
||||||
ret = ff_set_dimensions(avctx, s->width, s->height);
|
ret = ff_set_dimensions(avctx, s->width, s->height);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue