g2meet: Fix a typo in the height comparison
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 9 Jun 2013 14:55:10 +0000 (16:55 +0200)
committerMartin Storsjö <martin@martin.st>
Wed, 12 Jun 2013 11:45:53 +0000 (13:45 +0200)
Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/g2meet.c

index 43888dc8e382dc5d275681bdba0f98865dfedcc9..a617df61ff7123b48c5b4bd2c9542cda3d47c6fb 100644 (file)
@@ -440,7 +440,7 @@ static int g2m_init_buffers(G2MContext *c)
 {
     int aligned_height;
 
-    if (!c->framebuf || c->old_width < c->width || c->height < c->height) {
+    if (!c->framebuf || c->old_width < c->width || c->old_height < c->height) {
         c->framebuf_stride = FFALIGN(c->width * 3, 16);
         aligned_height     = FFALIGN(c->height,    16);
         av_free(c->framebuf);