lavu/opt: perform misc cosmetical fixes

This commit is contained in:
Stefano Sabatini 2012-12-08 18:34:38 +01:00
parent 642a60f1c2
commit 0ad654d4c9

View File

@ -1208,7 +1208,8 @@ void *av_opt_ptr(const AVClass *class, void *obj, const char *name)
return (uint8_t*)obj + opt->offset;
}
int av_opt_query_ranges(AVOptionRanges **ranges_arg, void *obj, const char *key, int flags) {
int av_opt_query_ranges(AVOptionRanges **ranges_arg, void *obj, const char *key, int flags)
{
const AVClass *c = *(AVClass**)obj;
int (*callback)(AVOptionRanges **, void *obj, const char *key, int flags) = NULL;
@ -1221,7 +1222,8 @@ int av_opt_query_ranges(AVOptionRanges **ranges_arg, void *obj, const char *key,
return callback(ranges_arg, obj, key, flags);
}
int av_opt_query_ranges_default(AVOptionRanges **ranges_arg, void *obj, const char *key, int flags) {
int av_opt_query_ranges_default(AVOptionRanges **ranges_arg, void *obj, const char *key, int flags)
{
AVOptionRanges *ranges = av_mallocz(sizeof(*ranges));
AVOptionRange **range_array = av_mallocz(sizeof(void*));
AVOptionRange *range = av_mallocz(sizeof(*range));
@ -1275,7 +1277,8 @@ fail:
return -1;
}
void av_opt_freep_ranges(AVOptionRanges **rangesp) {
void av_opt_freep_ranges(AVOptionRanges **rangesp)
{
int i;
AVOptionRanges *ranges = *rangesp;