mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-08 16:54:03 +02:00
h261dec: Fix context initialization sequence
ff_mpv_common_init sets s->context_initialized. This fixes decoding of h261 in the cases where the demuxer hasn't already set the frame size. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
91bfac759d
commit
3bb465245f
@ -600,11 +600,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…
x
Reference in New Issue
Block a user