[FFmpeg-devel] [PATCH 2/4] lavfi: split frame_count between input and output.

Paul B Mahol onemda at gmail.com
Mon Oct 24 22:51:07 EEST 2016


On 10/23/16, Nicolas George <george at nsup.org> wrote:
> AVFilterLink.frame_count is supposed to count the number of frames
> that were passed on the link, but with min_samples, that number is
> not always the same for the source and destination filters.
> With the addition of a FIFO on the link, the difference will become
> more significant.
>
> Split the variable in two: frame_count_in counts the number of
> frames that entered the link, frame_count_out counts the number
> of frames that were sent to the destination filter.
>
> Signed-off-by: Nicolas George <george at nsup.org>
> ---
>  libavfilter/af_ashowinfo.c   |  2 +-
>  libavfilter/af_volume.c      |  2 +-
>  libavfilter/asrc_sine.c      |  2 +-
>  libavfilter/avf_showfreqs.c  |  4 ++--
>  libavfilter/avfilter.c       |  5 +++--
>  libavfilter/avfilter.h       |  2 +-
>  libavfilter/f_loop.c         |  2 +-
>  libavfilter/f_metadata.c     |  4 ++--
>  libavfilter/f_select.c       |  2 +-
>  libavfilter/f_streamselect.c |  2 +-
>  libavfilter/vf_bbox.c        |  2 +-
>  libavfilter/vf_blackdetect.c |  2 +-
>  libavfilter/vf_blend.c       |  2 +-
>  libavfilter/vf_crop.c        |  2 +-
>  libavfilter/vf_decimate.c    |  2 +-
>  libavfilter/vf_detelecine.c  |  2 +-
>  libavfilter/vf_drawtext.c    |  4 ++--
>  libavfilter/vf_eq.c          |  2 +-
>  libavfilter/vf_fade.c        |  8 ++++----
>  libavfilter/vf_fieldhint.c   | 14 +++++++-------
>  libavfilter/vf_fieldmatch.c  |  6 +++---
>  libavfilter/vf_framestep.c   |  2 +-
>  libavfilter/vf_geq.c         |  2 +-
>  libavfilter/vf_hue.c         |  2 +-
>  libavfilter/vf_overlay.c     |  2 +-
>  libavfilter/vf_paletteuse.c  |  2 +-
>  libavfilter/vf_perspective.c |  4 ++--
>  libavfilter/vf_rotate.c      |  2 +-
>  libavfilter/vf_showinfo.c    |  2 +-
>  libavfilter/vf_swaprect.c    |  2 +-
>  libavfilter/vf_telecine.c    |  2 +-
>  libavfilter/vf_tinterlace.c  |  4 ++--
>  libavfilter/vf_vignette.c    |  2 +-
>  libavfilter/vf_zoompan.c     |  6 +++---
>  libavfilter/vsrc_mptestsrc.c |  2 +-
>  35 files changed, 55 insertions(+), 54 deletions(-)
>

Idea sounds sane, i havent chacked each change if it is correct.


More information about the ffmpeg-devel mailing list