diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-03-05 20:03:15 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-03-05 20:03:15 +0000 |
commit | 640950c700ce17fb6e3a135c5717f35c9c8d48ea (patch) | |
tree | b9a8fd9e7ef43e8749860f63b8d83dffda1831f4 /libavcodec/mpeg12.c | |
parent | 1d98dca328c437625b2d33cd2cf46af2671421b3 (diff) |
mpeg2 field pictures + sliced mode (doesnt work with mplayer though, dunno why)
Originally committed as revision 1626 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r-- | libavcodec/mpeg12.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 4107e7a5fa..bee03d2876 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -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++; |