mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-12-24 11:52:06 +08:00
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:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user