Anton Khirnov <an...@khirnov.net> writes:

> From: Stefano Sabatini <stefano.sabatini-l...@poste.it>
>
> The function was only used in opt_sample_fmt() for listing the sample
> formats. Move list_fmts() functionality directly into
> opt_sample_fmt().
>
> Also fix the warning:
> ffmpeg.c: In function ‘opt_audio_sample_fmt’:
> ffmpeg.c:2877: warning: passing argument 1 of ‘list_fmts’ from incompatible 
> pointer type
> cmdutils.h:163: note: expected ‘void (*)(char *, int,  int)’ but argument is 
> of type ‘char * (*)(char *, int,  enum AVSampleFormat)’
>
> Signed-off-by: Anton Khirnov <an...@khirnov.net>
> ---
>  cmdutils.c |   10 ----------
>  cmdutils.h |    2 --
>  ffmpeg.c   |    5 ++++-
>  3 files changed, 4 insertions(+), 13 deletions(-)

Looks OK.

-- 
Måns Rullgård
m...@mansr.com
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to