Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
b39b0623
Commit
b39b0623
authored
13 years ago
by
Anton Khirnov
Browse files
Options
Downloads
Patches
Plain Diff
AVOptions: add av_opt_free convenience function.
parent
92b4abc2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
doc/APIchanges
+3
-0
3 additions, 0 deletions
doc/APIchanges
libavutil/avutil.h
+1
-1
1 addition, 1 deletion
libavutil/avutil.h
libavutil/opt.c
+8
-0
8 additions, 0 deletions
libavutil/opt.c
libavutil/opt.h
+5
-0
5 additions, 0 deletions
libavutil/opt.h
with
17 additions
and
1 deletion
doc/APIchanges
+
3
−
0
View file @
b39b0623
...
@@ -13,6 +13,9 @@ libavutil: 2011-04-18
...
@@ -13,6 +13,9 @@ libavutil: 2011-04-18
API changes, most recent first:
API changes, most recent first:
2011-06-xx - xxxxxxx - lavu 51.3.0 - opt.h
Add av_opt_free convenience function.
2011-05-28 - 0420bd7 - lavu 51.2.0 - pixdesc.h
2011-05-28 - 0420bd7 - lavu 51.2.0 - pixdesc.h
Add av_get_pix_fmt_name() in libavutil/pixdesc.h, and deprecate
Add av_get_pix_fmt_name() in libavutil/pixdesc.h, and deprecate
avcodec_get_pix_fmt_name() in libavcodec/avcodec.h in its favor.
avcodec_get_pix_fmt_name() in libavcodec/avcodec.h in its favor.
...
...
This diff is collapsed.
Click to expand it.
libavutil/avutil.h
+
1
−
1
View file @
b39b0623
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
#define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)
#define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)
#define LIBAVUTIL_VERSION_MAJOR 51
#define LIBAVUTIL_VERSION_MAJOR 51
#define LIBAVUTIL_VERSION_MINOR
2
#define LIBAVUTIL_VERSION_MINOR
3
#define LIBAVUTIL_VERSION_MICRO 0
#define LIBAVUTIL_VERSION_MICRO 0
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
...
...
This diff is collapsed.
Click to expand it.
libavutil/opt.c
+
8
−
0
View file @
b39b0623
...
@@ -520,6 +520,14 @@ int av_set_options_string(void *ctx, const char *opts,
...
@@ -520,6 +520,14 @@ int av_set_options_string(void *ctx, const char *opts,
return
count
;
return
count
;
}
}
void
av_opt_free
(
void
*
obj
)
{
const
AVOption
*
o
=
NULL
;
while
((
o
=
av_next_option
(
obj
,
o
)))
if
(
o
->
type
==
FF_OPT_TYPE_STRING
||
o
->
type
==
FF_OPT_TYPE_BINARY
)
av_freep
((
uint8_t
*
)
obj
+
o
->
offset
);
}
#ifdef TEST
#ifdef TEST
#undef printf
#undef printf
...
...
This diff is collapsed.
Click to expand it.
libavutil/opt.h
+
5
−
0
View file @
b39b0623
...
@@ -176,4 +176,9 @@ void av_opt_set_defaults2(void *s, int mask, int flags);
...
@@ -176,4 +176,9 @@ void av_opt_set_defaults2(void *s, int mask, int flags);
int
av_set_options_string
(
void
*
ctx
,
const
char
*
opts
,
int
av_set_options_string
(
void
*
ctx
,
const
char
*
opts
,
const
char
*
key_val_sep
,
const
char
*
pairs_sep
);
const
char
*
key_val_sep
,
const
char
*
pairs_sep
);
/**
* Free all string and binary options in obj.
*/
void
av_opt_free
(
void
*
obj
);
#endif
/* AVUTIL_OPT_H */
#endif
/* AVUTIL_OPT_H */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment