faxcompr: fix byte alignment case
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 30 Aug 2012 20:16:17 +0000 (22:16 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 30 Aug 2012 20:24:58 +0000 (22:24 +0200)
Fixes Ticket1653

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

index 57e92be..5aa7885 100644 (file)
@@ -291,7 +291,8 @@ int ff_ccitt_unpack(AVCodecContext *avctx,
     ref[1] = 0;
     ref[2] = 0;
     init_get_bits(&gb, src, srcsize*8);
-    has_eol = show_bits(&gb, 12) == 1;
+    has_eol = show_bits(&gb, 12) == 1 || show_bits(&gb, 16) == 1;
+
     for(j = 0; j < height; j++){
         runend = runs + runsize;
         if(compr == TIFF_G4){