[FFmpeg-cvslog] r25073 - trunk/libavcodec/vp3.c
reimar
subversion
Wed Sep 8 07:51:31 CEST 2010
Author: reimar
Date: Wed Sep 8 07:51:31 2010
New Revision: 25073
Log:
Only draw the actually visible area in vp3_draw_horiz_band.
Fixes a black line in non-swapped, non-mod-16-height Theora videos
when vp3_draw_horiz_band is used.
Modified:
trunk/libavcodec/vp3.c
Modified: trunk/libavcodec/vp3.c
==============================================================================
--- trunk/libavcodec/vp3.c Wed Sep 8 01:41:18 2010 (r25072)
+++ trunk/libavcodec/vp3.c Wed Sep 8 07:51:31 2010 (r25073)
@@ -1326,9 +1326,7 @@ static void vp3_draw_horiz_band(Vp3Decod
y -= h;
if (!s->flipped_image) {
- if (y == 0)
- h -= s->height - s->avctx->height; // account for non-mod16
- y = s->height - y - h;
+ y = s->avctx->height - y - h;
}
cy = y >> s->chroma_y_shift;
@@ -1850,7 +1848,7 @@ static int vp3_decode_frame(AVCodecConte
int row = (s->height >> (3+(i && s->chroma_y_shift))) - 1;
apply_loop_filter(s, i, row, row+1);
}
- vp3_draw_horiz_band(s, s->height);
+ vp3_draw_horiz_band(s, s->avctx->height);
*data_size=sizeof(AVFrame);
*(AVFrame*)data= s->current_frame;
More information about the ffmpeg-cvslog
mailing list