[FFmpeg-devel] [PATCH] Enhance ffmpeg.c:opt_default()

Stefano Sabatini stefano.sabatini-lala
Sat Nov 29 19:24:08 CET 2008


On date Friday 2008-08-22 19:33:09 +0200, Stefano Sabatini encoded:
[...]
> This should eventually fix the weird error reporting for errors of the
> kind:
> stefano at geppetto ~> ffmpeg -bt foo
> FFmpeg version SVN-r14865, Copyright (c) 2000-2008 Fabrice Bellard, et al.
>   configuration: --prefix=/home/stefano --disable-shared --enable-libschroedinger --enable-libx264 --enable-libxvid --enable-pthreads --enable-gpl --enable-debug=3 --enable-libtheora --enable-libvorbis --enable-avfilter --enable-libamr-nb --enable-libamr-wb --enable-nonfree --enable-libfaad --enable-libfaac --enable-x11grab --enable-libmp3lame --disable-optimizations --disable-mmx
>   libavutil     49.10. 0 / 49.10. 0
>   libavcodec    51.68. 0 / 51.68. 0
>   libavformat   52.20. 0 / 52.20. 0
>   libavdevice   52. 1. 0 / 52. 1. 0
>   libavfilter    0. 1. 0 /  0. 1. 0
>   built on Aug 20 2008 17:53:40, gcc: 4.2.3 20071014 (prerelease) (Debian 4.2.2-3)
> Unable to parse option value "foo": undefined constant or missing (
> Unable to parse option value "foo": undefined constant or missing (
> Unable to parse option value "foo": undefined constant or missing (
> ffmpeg: unrecognized option '-bt'

New try. Now the error messages will look like:
stefano at geppetto ~/s/ffmpeg> ffmpeg -bt -1
[...]
Invalid value '-1' for option 'bt': Value -1.000000 for parameter 'bt' out of range

stefano at geppetto ~/s/ffmpeg> ffmpeg -bt foo
[...]
Invalid value 'foo' for option 'bt': Value foo for parameter 'bt' non-parsable: undefined constant or missing (

Regards.
-- 
FFmpeg = Foolish & Frightening Mythic Pitiful Ecletic Guide
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rename-av-set-string2-error.patch
Type: text/x-diff
Size: 1459 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081129/a140956f/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: implement-av-set-number2.patch
Type: text/x-diff
Size: 1864 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081129/a140956f/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove-unconsisten-ending-period.patch
Type: text/x-diff
Size: 559 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081129/a140956f/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: implement-av-set-string3.patch
Type: text/x-diff
Size: 4741 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081129/a140956f/attachment-0003.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-opt-default.patch
Type: text/x-diff
Size: 1866 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081129/a140956f/attachment-0004.patch>



More information about the ffmpeg-devel mailing list