comparison vp3.c @ 12461:25174028da0a libavcodec

Fix slice height for y position calculation for vp3_draw_horiz_band when the video uses 4:2:2 instead of 4:2:0 coding.
author reimar
date Mon, 06 Sep 2010 19:26:18 +0000
parents 7106d2c8f142
children ffb3668ff7af
comparison
equal deleted inserted replaced
12460:7106d2c8f142 12461:25174028da0a
1507 * dispatch (both last slice & 2nd-to-last slice); 1507 * dispatch (both last slice & 2nd-to-last slice);
1508 * else if (slice > 0) 1508 * else if (slice > 0)
1509 * dispatch (slice - 1); 1509 * dispatch (slice - 1);
1510 */ 1510 */
1511 1511
1512 vp3_draw_horiz_band(s, FFMIN(64*slice + 64-16, s->height-16)); 1512 vp3_draw_horiz_band(s, FFMIN((32 << s->chroma_y_shift) * (slice + 1) -16, s->height-16));
1513 } 1513 }
1514 1514
1515 /* 1515 /*
1516 * This is the ffmpeg/libavcodec API init function. 1516 * This is the ffmpeg/libavcodec API init function.
1517 */ 1517 */