diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-06-05 12:40:37 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-06-09 08:42:50 +0200 |
commit | 283cc059386781b6fb90b9e5496d8963c3e416af (patch) | |
tree | 4431b55762bbec63ed6b80c195acfce14b5dfd07 /libavfilter/sink_buffer.c | |
parent | 7b42036b3b23c85f473bf9369e37fa8da22eaf93 (diff) | |
download | ffmpeg-283cc059386781b6fb90b9e5496d8963c3e416af.tar.gz |
buffersink: add av_buffersink_get_frame_rate().
Diffstat (limited to 'libavfilter/sink_buffer.c')
-rw-r--r-- | libavfilter/sink_buffer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavfilter/sink_buffer.c b/libavfilter/sink_buffer.c index d83f21ba61..d1a72e4081 100644 --- a/libavfilter/sink_buffer.c +++ b/libavfilter/sink_buffer.c @@ -142,6 +142,11 @@ int av_buffersink_get_buffer_ref(AVFilterContext *ctx, return 0; } +AVRational av_buffersink_get_frame_rate(AVFilterContext *ctx) +{ + return ctx->inputs[0]->frame_rate; +} + int av_buffersink_poll_frame(AVFilterContext *ctx) { BufferSinkContext *buf = ctx->priv; |