mpegvideo: Use picture_ptr instead of picture in ff_mpeg_draw_horiz_band()

Fixes strides and issue with mplayer and mpeg2 field pictures

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-08-20 00:14:24 +02:00
parent 818ebe930f
commit 68b63a3432

View File

@ -2989,8 +2989,8 @@ void ff_draw_horiz_band(AVCodecContext *avctx, DSPContext *dsp, Picture *cur,
void ff_mpeg_draw_horiz_band(MpegEncContext *s, int y, int h) void ff_mpeg_draw_horiz_band(MpegEncContext *s, int y, int h)
{ {
int draw_edges = s->unrestricted_mv && !s->intra_only; int draw_edges = s->unrestricted_mv && !s->intra_only;
ff_draw_horiz_band(s->avctx, &s->dsp, &s->current_picture, ff_draw_horiz_band(s->avctx, &s->dsp, s->current_picture_ptr,
&s->last_picture, y, h, s->picture_structure, s->last_picture_ptr, y, h, s->picture_structure,
s->first_field, draw_edges, s->low_delay, s->first_field, draw_edges, s->low_delay,
s->v_edge_pos, s->h_edge_pos); s->v_edge_pos, s->h_edge_pos);
} }