Commit 4b5ff9b6 authored by Michael Niedermayer's avatar Michael Niedermayer

ffplay: Use input picture parameters in input_request_frame().

Fixes Ticket122
Reviewed-by: 's avatarMarton Balint <cus@passwd.hu>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4d18f4c1
......@@ -1672,10 +1672,10 @@ static int input_request_frame(AVFilterLink *link)
if (priv->use_dr1 && priv->frame->opaque) {
picref = avfilter_ref_buffer(priv->frame->opaque, ~0);
} 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,
(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);
......@@ -1684,7 +1684,7 @@ static int input_request_frame(AVFilterLink *link)
picref->pts = pts;
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);
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment