Browse Source

ffplay: Use input picture parameters in input_request_frame().

Fixes Ticket122

Reviewed-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 13 years ago
parent
commit
4b5ff9b63e
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      ffplay.c

+ 3
- 3
ffplay.c View File

@@ -1672,10 +1672,10 @@ static int input_request_frame(AVFilterLink *link)
if (priv->use_dr1 && priv->frame->opaque) { if (priv->use_dr1 && priv->frame->opaque) {
picref = avfilter_ref_buffer(priv->frame->opaque, ~0); picref = avfilter_ref_buffer(priv->frame->opaque, ~0);
} else { } else {
picref = avfilter_get_video_buffer(link, AV_PERM_WRITE, link->w, link->h);
picref = avfilter_get_video_buffer(link, AV_PERM_WRITE, priv->frame->width, priv->frame->height);
av_image_copy(picref->data, picref->linesize, av_image_copy(picref->data, picref->linesize,
(const uint8_t **)(void **)priv->frame->data, priv->frame->linesize, (const uint8_t **)(void **)priv->frame->data, priv->frame->linesize,
picref->format, link->w, link->h);
picref->format, priv->frame->width, priv->frame->height);
} }
av_free_packet(&pkt); av_free_packet(&pkt);


@@ -1684,7 +1684,7 @@ static int input_request_frame(AVFilterLink *link)
picref->pts = pts; picref->pts = pts;


avfilter_start_frame(link, picref); avfilter_start_frame(link, picref);
avfilter_draw_slice(link, 0, link->h, 1);
avfilter_draw_slice(link, 0, picref->video->h, 1);
avfilter_end_frame(link); avfilter_end_frame(link);


return 0; return 0;


Loading…
Cancel
Save