| Commit message (Collapse) | Author | Age |
| |
|
| |
|
|
|
|
| |
Just for naming consistency, no functional changes.
|
| |
|
|
|
|
|
| |
Split actual writing to read_number() in the same way as write_number().
Allows set_string_number() to write to a caller-provided destination.
|
|
|
|
|
| |
New functions can get values from child objects, properly report error
codes and have consistent naming and signatures.
|
|
|
|
|
|
|
| |
Deprecate av_set_*
New functions support setting values on children, return error codes
instead of options and have consistent naming and signatures.
|
|
|
|
|
|
|
|
|
| |
This will allow the caller to enumerate child contexts in a generic way
and since the API is recursive, it also allows for deeper nesting (e.g.
AVFormatContext->AVIOContext->URLContext)
This will also allow the new setting/reading API to transparently apply
to children contexts.
|
|
|
|
|
|
| |
write_number() does the actual writing of the supplied
number to destination. Move finding the option and choosing destination
address out of it.
|
| |
|
| |
|
|
|
|
|
|
| |
Also stop attempting to honor the alloc parameter, as things break
horribly in that case.
It will be removed in upcoming successor to av_set_string3.
|
|
|
|
|
| |
They will only ever be <=0 if the option is broken, in which case this
check is hiding a bug.
|
|
|
|
|
|
| |
It's a hack which was created to allow for multiple options with
different defaults to refer to same field (e.g. 'b' vs 'ab'). There is
no need for it anymore.
|
|
|
|
| |
Also change it to be more readable.
|
| |
|
|
|
|
|
|
|
|
|
| |
specified.
That is, unless the caller explicitly asks for them.
Prevents conflict between e.g. the 'loop' option in img2 demuxer and
'loop' flag in AVCodecContext.
|
|
|
|
| |
Signed-off-by: Mans Rullgard <mans@mansr.com>
|
|
|
|
|
|
|
| |
These statements cannot be reached and are thus not needed.
This removes a number of compiler warnings.
Signed-off-by: Mans Rullgard <mans@mansr.com>
|
|
|
|
| |
libavutil/opt.c:604:1: warning: missing braces around initializer [-Wmissing-braces]
|
| |
|
|
|
|
| |
This way the caller can pass all the options in one nice package.
|
|
|
|
| |
Signed-off-by: Martin Storsjö <martin@martin.st>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This actually matches what av_get_double did earlier, the
0.0/0.0 division was intentional, for producing NAN.
Still keeping the check for the return value from
av_get_number, for clarity.
Signed-off-by: Martin Storsjö <martin@martin.st>
|
|
|
|
|
|
|
| |
This avoids doing a division by zero if the option wasn't found,
or wasn't an option of an appropriate type.
Signed-off-by: Martin Storsjö <martin@martin.st>
|
|
|
|
| |
This breaks API and ABI.
|
|
|
|
|
|
|
|
| |
The new error code is better than AVERROR(ENOENT), which has a
completely different semantics ("No such file or directory").
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
|
|
|
| |
Signed-off-by: Mans Rullgard <mans@mansr.com>
|
|
|
|
|
|
|
|
|
| |
eval API.
More grep-friendly and more consistent with the rest of the FFmpeg
API.
Originally committed as revision 25708 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
|
|
| |
Originally committed as revision 25265 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
|
|
| |
Originally committed as revision 25236 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
|
|
|
|
| |
to use the library path prefix for eval.h.
Originally committed as revision 25220 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
|
|
| |
Originally committed as revision 25219 to svn://svn.ffmpeg.org/ffmpeg/trunk
|
|
Originally committed as revision 25210 to svn://svn.ffmpeg.org/ffmpeg/trunk
|