aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-08-15 02:50:41 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-08-15 02:53:48 +0200
commit6c1ee1a11446abbe662fc89b9dff0f0a3d5fdd55 (patch)
tree7ac507c8e006c2164cbd9d271eb616a268524211 /libavcodec
parent595c63357cdc4e08a36971f2aae0fb1f019e7224 (diff)
downloadffmpeg-6c1ee1a11446abbe662fc89b9dff0f0a3d5fdd55.tar.gz
avcodec/h261dec: Fix context initialization sequence
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h261dec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/h261dec.c b/libavcodec/h261dec.c
index dea554b71c..5bc685e2c0 100644
--- a/libavcodec/h261dec.c
+++ b/libavcodec/h261dec.c
@@ -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;