[FFmpeg-devel] [PATCH] flashsv: use skip_bits_long() where required
Mans Rullgard
mans
Sun Nov 23 23:37:59 CET 2008
skip_bits(gb, n) with n > 17 doesn't work with all bitstream readers.
Switch to skip_bits_long() instead.
---
libavcodec/flashsv.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c
index 3842594..abe1d87 100644
--- a/libavcodec/flashsv.c
+++ b/libavcodec/flashsv.c
@@ -211,7 +211,7 @@ static int flashsv_decode_frame(AVCodecContext *avctx,
/* return -1; */
}
copy_region(s->tmpblock, s->frame.data[0], s->image_height-(hp+hs+1), wp, hs, ws, s->frame.linesize[0]);
- skip_bits(&gb, 8*size); /* skip the consumed bits */
+ skip_bits_long(&gb, 8*size); /* skip the consumed bits */
}
}
}
--
1.6.0.4
More information about the ffmpeg-devel
mailing list