diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-03-09 15:13:59 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-04-03 16:40:12 +0200 |
commit | 7d948dc424c3620e351d27afdf933c99f9435467 (patch) | |
tree | 711b70fc32faa0b8279df88c055b64b19ec3cadb /ffmpeg.c | |
parent | 0b9dffc67ab506a5d148993b98d8713a76623892 (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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 } } } |