aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegvideo.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-17 04:34:21 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-03-17 04:35:48 +0100
commit3ddf9b5b7750bda97a591272fa0860e53b4f5c4f (patch)
treec9175f613329f9612cd956efa3a99dad57f2163d /libavcodec/mpegvideo.c
parentb73aae6fe9b78905635f138c931da621f83aaa31 (diff)
parent75af13a0e4c54ee780249e16c8e14983614e2f25 (diff)
downloadffmpeg-3ddf9b5b7750bda97a591272fa0860e53b4f5c4f.tar.gz
Merge commit '75af13a'
* commit '75af13a': mpegvideo: directly use frames in ff_draw_horiz_band() Conflicts: libavcodec/mpegvideo.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r--libavcodec/mpegvideo.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 3df13100e6..148484cb7c 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -3025,8 +3025,9 @@ void ff_MPV_decode_mb(MpegEncContext *s, int16_t block[12][64]){
/**
* @param h is the normal height, this will be reduced automatically if needed for the last row
*/
-void ff_draw_horiz_band(AVCodecContext *avctx, Picture *cur,
- Picture *last, int y, int h, int picture_structure,
+void ff_draw_horiz_band(AVCodecContext *avctx,
+ AVFrame *cur, AVFrame *last,
+ int y, int h, int picture_structure,
int first_field, int low_delay)
{
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt);
@@ -3046,15 +3047,15 @@ void ff_draw_horiz_band(AVCodecContext *avctx, Picture *cur,
int offset[AV_NUM_DATA_POINTERS];
int i;
- if(cur->f.pict_type == AV_PICTURE_TYPE_B || low_delay ||
+ if (cur->pict_type == AV_PICTURE_TYPE_B || low_delay ||
(avctx->slice_flags & SLICE_FLAG_CODED_ORDER))
- src = &cur->f;
+ src = cur;
else if (last)
- src = &last->f;
+ src = last;
else
return;
- if (cur->f.pict_type == AV_PICTURE_TYPE_B &&
+ if (cur->pict_type == AV_PICTURE_TYPE_B &&
picture_structure == PICT_FRAME &&
avctx->codec_id != AV_CODEC_ID_SVQ3) {
for (i = 0; i < AV_NUM_DATA_POINTERS; i++)
@@ -3076,8 +3077,8 @@ void ff_draw_horiz_band(AVCodecContext *avctx, Picture *cur,
void ff_mpeg_draw_horiz_band(MpegEncContext *s, int y, int h)
{
- ff_draw_horiz_band(s->avctx, s->current_picture_ptr,
- s->last_picture_ptr, y, h, s->picture_structure,
+ ff_draw_horiz_band(s->avctx, &s->current_picture_ptr->f,
+ &s->last_picture_ptr->f, y, h, s->picture_structure,
s->first_field, s->low_delay);
}