mpeg2 field pictures + sliced mode (doesnt work with mplayer though, dunno why)

Originally committed as revision 1626 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer
2003-03-05 20:03:15 +00:00
parent 1d98dca328
commit 640950c700
4 changed files with 19 additions and 12 deletions

View File

@@ -1875,7 +1875,13 @@ static int mpeg_decode_slice(AVCodecContext *avctx,
}
if (++s->mb_x >= s->mb_width) {
ff_draw_horiz_band(s);
if(s->picture_structure==PICT_FRAME){
ff_draw_horiz_band(s, 16*s->mb_y, 16);
}else{
if(!s->first_field){
ff_draw_horiz_band(s, 32*s->mb_y, 32);
}
}
s->mb_x = 0;
s->mb_y++;