avcodec/huffyuvdec: use the correct height field
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 18 Feb 2014 12:51:25 +0000 (13:51 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 18 Feb 2014 12:51:25 +0000 (13:51 +0100)
Fixes Ticket3395

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/huffyuvdec.c

index 7a1579f..0f6f223 100644 (file)
@@ -267,7 +267,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
 
     memset(s->vlc, 0, 4 * sizeof(VLC));
 
-    s->interlaced = s->height > 288;
+    s->interlaced = avctx->height > 288;
 
     s->bgr32 = 1;