projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c247b4
)
Fix deinterlacing for odd height
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 5 Aug 2007 12:11:28 +0000
(12:11 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 5 Aug 2007 12:11:28 +0000
(12:11 +0000)
Originally committed as revision 9942 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/xsubdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/xsubdec.c
b/libavcodec/xsubdec.c
index 9a90bf4fdf20765579af38d57b7783331d53bad6..752c23744fd6ced0b81a4aa1b9a750f6f49eebbd 100644
(file)
--- a/
libavcodec/xsubdec.c
+++ b/
libavcodec/xsubdec.c
@@
-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));