[FFmpeg-devel] [FFmpeg-cvslog] fftools/cmdutils: add error handling to GROW_ARRAY()

Michael Niedermayer michael at niedermayer.cc
Thu Jul 27 23:07:27 EEST 2023


On Thu, Jul 20, 2023 at 06:57:15PM +0000, Anton Khirnov wrote:
> ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Jul 14 12:28:18 2023 +0200| [2e6afa799ef693b94f993f54ed41a84f6d9f1685] | committer: Anton Khirnov
> 
> fftools/cmdutils: add error handling to GROW_ARRAY()
> 
> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2e6afa799ef693b94f993f54ed41a84f6d9f1685
> ---
> 
>  fftools/cmdutils.c        | 44 ++++++++++++++++++++++++++++++++++----------
>  fftools/cmdutils.h        |  6 +-----
>  fftools/ffmpeg_demux.c    | 10 ++++++++--
>  fftools/ffmpeg_mux_init.c | 15 ++++++++++++---
>  fftools/ffmpeg_opt.c      | 24 +++++++++++++++++++-----
>  fftools/ffplay.c          |  5 ++++-
>  6 files changed, 78 insertions(+), 26 deletions(-)

this feels wrong:

 Reading option '-nostats' ... matched as option 'stats' (print progress report during encoding) with argument 0.
 Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
 Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
-Reading option '-i' ... matched as input url with argument 'videos/mm-short.mpg'.
+Reading option '-i' ... matched as output url with argument 'videos/mm-short.mpg'.
 Reading option '-bitexact' ... matched as option 'bitexact' (bitexact mode) with argument '1'.
 Reading option '-t' ... matched as option 't' (record or transcode "duration" seconds of audio/video) with argument '1'.
 Reading option 'doom_tmp/report/file.avi' ... matched as output url.

FFREPORT=file=/tmp/report ./ffmpeg -v repeat+verbose -nostats -y -report -i ~/videos/mm-short.mpg -bitexact -t 1 /tmp/file.avi

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The bravest are surely those who have the clearest vision
of what is before them, glory and danger alike, and yet
notwithstanding go out to meet it. -- Thucydides
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20230727/c9b2a140/attachment.sig>


More information about the ffmpeg-devel mailing list