[FFmpeg-cvslog] r9942 - trunk/libavcodec/xsubdec.c
reimar
subversion
Sun Aug 5 14:11:29 CEST 2007
Author: reimar
Date: Sun Aug 5 14:11:28 2007
New Revision: 9942
Log:
Fix deinterlacing for odd height
Modified:
trunk/libavcodec/xsubdec.c
Modified: trunk/libavcodec/xsubdec.c
==============================================================================
--- trunk/libavcodec/xsubdec.c (original)
+++ trunk/libavcodec/xsubdec.c Sun Aug 5 14:11:28 2007
@@ -84,7 +84,7 @@ static int decode_frame(AVCodecContext *
bitmap = sub->rects[0].bitmap;
for (y = 0; y < h; y++) {
// interlaced: do odd lines
- if (y == h / 2) bitmap = sub->rects[0].bitmap + w;
+ if (y == (h + 1) / 2) bitmap = sub->rects[0].bitmap + w;
for (x = 0; x < w; ) {
int log2 = ff_log2_tab[show_bits(&gb, 8)];
int run = get_bits(&gb, 14 - 4 * (log2 >> 1));
More information about the ffmpeg-cvslog
mailing list