Commit 574939f5 authored by reimar's avatar reimar

Fix deinterlacing for odd height


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9942 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 91b2a512
......@@ -84,7 +84,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
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));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment