On 17/12/14 13:41, Martin Storsjö wrote:
From: Michael Niedermayer <[email protected]>

CC: [email protected]
---
  libavcodec/h261dec.c | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/h261dec.c b/libavcodec/h261dec.c
index 4d1c997..83cee7f 100644
--- a/libavcodec/h261dec.c
+++ b/libavcodec/h261dec.c
@@ -600,11 +600,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;


What does it fix exactly? looks the patch just factorizes two identical branches.

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to