summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-03-09 15:13:59 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-04-03 16:40:12 +0200
commit7d948dc424c3620e351d27afdf933c99f9435467 (patch)
tree711b70fc32faa0b8279df88c055b64b19ec3cadb /ffmpeg.c
parent0b9dffc67ab506a5d148993b98d8713a76623892 (diff)
Support changing pixel formats on avfilter input.
Fix issue2217 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 5d89fc064d..fb4ec61ec5 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1624,9 +1624,10 @@ static int output_packet(AVInputStream *ist, int ist_index,
if (ist->st->sample_aspect_ratio.num) sar = ist->st->sample_aspect_ratio;
else sar = ist->st->codec->sample_aspect_ratio;
// add it to be filtered
- av_vsrc_buffer_add_frame(ost->input_video_filter, &picture,
+ av_vsrc_buffer_add_frame2(ost->input_video_filter, &picture,
ist->pts,
- sar);
+ sar, ist->st->codec->width, ist->st->codec->height,
+ ist->st->codec->pix_fmt, "0:0"); //TODO user setable params
}
}
}