You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
buffersink: add av_buffersink_get_frame_rate().
This commit is contained in:
@ -133,4 +133,9 @@ int av_buffersink_read(AVFilterContext *sink, AVFilterBufferRef **buf);
|
|||||||
int av_buffersink_read_samples(AVFilterContext *ctx, AVFilterBufferRef **buf,
|
int av_buffersink_read_samples(AVFilterContext *ctx, AVFilterBufferRef **buf,
|
||||||
int nb_samples);
|
int nb_samples);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the frame rate of the input.
|
||||||
|
*/
|
||||||
|
AVRational av_buffersink_get_frame_rate(AVFilterContext *ctx);
|
||||||
|
|
||||||
#endif /* AVFILTER_BUFFERSINK_H */
|
#endif /* AVFILTER_BUFFERSINK_H */
|
||||||
|
@ -142,6 +142,11 @@ int av_buffersink_get_buffer_ref(AVFilterContext *ctx,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AVRational av_buffersink_get_frame_rate(AVFilterContext *ctx)
|
||||||
|
{
|
||||||
|
return ctx->inputs[0]->frame_rate;
|
||||||
|
}
|
||||||
|
|
||||||
int av_buffersink_poll_frame(AVFilterContext *ctx)
|
int av_buffersink_poll_frame(AVFilterContext *ctx)
|
||||||
{
|
{
|
||||||
BufferSinkContext *buf = ctx->priv;
|
BufferSinkContext *buf = ctx->priv;
|
||||||
|
Reference in New Issue
Block a user