summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-02 09:52:11 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-07 12:03:59 +0200
commit64c06615d2b99fb9f4ffd6226d0e5787b44a41e2 (patch)
tree9a95ad87fb3037c1641a203c2dcd1f99e2f2298e /ffmpeg.c
parent01042d4123b6e0a4c15d6828f835bd648eb03d38 (diff)
vsrc_buffer: simplify av_vsrc_buffer_add_frame*() interface
Now that pix_fmt, width, and height are directly embedded in the AVFrame, there is no need to pass these values as separate arguments.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 404389cc87..e52a42bfb3 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1648,11 +1648,9 @@ static int output_packet(AVInputStream *ist, int ist_index,
if (ost->input_video_filter && ost->source_index == ist_index) {
if (!picture.sample_aspect_ratio.num)
picture.sample_aspect_ratio = ist->st->sample_aspect_ratio;
+ picture.pts = ist->pts;
// add it to be filtered
- av_vsrc_buffer_add_frame2(ost->input_video_filter, &picture,
- ist->pts,
- ist->st->codec->width, ist->st->codec->height,
- ist->st->codec->pix_fmt, ""); //TODO user setable params
+ av_vsrc_buffer_add_frame2(ost->input_video_filter, &picture, ""); //TODO user setable params
}
}
}