Without this, it passes y 0 h 16, y 32 h 16, etc.
---
libavcodec/h264.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index d32bc29..8a1fea9 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -7134,7 +7134,7 @@ static int decode_slice(struct AVCodecContext *avctx, H264Context *h){
if( ++s->mb_x >= s->mb_width ) {
s->mb_x = 0;
- ff_draw_horiz_band(s, 16*s->mb_y, 16);
+ ff_draw_horiz_band(s, 16*s->mb_y, (FIELD_OR_MBAFF_PICTURE && (s->mb_y + 1 < s->mb_height)) ? 32 : 16);
ff_report_decode_progress((AVFrame*)s->current_picture_ptr, s->mb_y);
++s->mb_y;
if(FIELD_OR_MBAFF_PICTURE) {
@@ -7172,7 +7172,7 @@ static int decode_slice(struct AVCodecContext *avctx, H264Context *h){
if(++s->mb_x >= s->mb_width){
s->mb_x=0;
- ff_draw_horiz_band(s, 16*s->mb_y, 16);
+ ff_draw_horiz_band(s, 16*s->mb_y, (FIELD_OR_MBAFF_PICTURE && (s->mb_y + 1 < s->mb_height)) ? 32 : 16);
ff_report_decode_progress((AVFrame*)s->current_picture_ptr, s->mb_y);
++s->mb_y;
if(FIELD_OR_MBAFF_PICTURE) {
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc