History

Remove FF_CONST_AVUTIL55 cruft

Hendrik Leppkes committed 11 years ago

Commit 545559e1 parent 2df52083 files · +6 −14Browse files

Unified · Split

3 files
  1. libavutil/opt.c +3 −3
  2. libavutil/opt.h +3 −3
  3. libavutil/version.h +0 −8
libavutil/opt.c+3−3
@@ -42,13 +42,13 @@ · 41 unmodified lines
4242 #include <float.h>
4343
4444 #if FF_API_OLD_AVOPTIONS
45−const AVOption *av_next_option(FF_CONST_AVUTIL55 void *obj, const AVOption *last)
45+const AVOption *av_next_option(const void *obj, const AVOption *last)
4646 {
4747 return av_opt_next(obj, last);
4848 }
4949 #endif
5050
51−const AVOption *av_opt_next(FF_CONST_AVUTIL55 void *obj, const AVOption *last)
51+const AVOption *av_opt_next(const void *obj, const AVOption *last)
5252 {
5353 const AVClass *class;
5454 if (!obj)
@@ -1573,7 +1573,7 @@ static int opt_size(enum AVOptionType type) · 1518 unmodified lines
15731573 return 0;
15741574 }
15751575
1576−int av_opt_copy(void *dst, FF_CONST_AVUTIL55 void *src)
1576+int av_opt_copy(void *dst, const void *src)
15771577 {
15781578 const AVOption *o = NULL;
15791579 const AVClass *c;
libavutil/opt.h+3−3
@@ -420,7 +420,7 @@ AVRational av_get_q(void *obj, const char *name, const AVOption **o_out); · 419 unmodified lines
420420 attribute_deprecated
421421 int64_t av_get_int(void *obj, const char *name, const AVOption **o_out);
422422 attribute_deprecated const char *av_get_string(void *obj, const char *name, const AVOption **o_out, char *buf, int buf_len);
423−attribute_deprecated const AVOption *av_next_option(FF_CONST_AVUTIL55 void *obj, const AVOption *last);
423+attribute_deprecated const AVOption *av_next_option(const void *obj, const AVOption *last);
424424 #endif
425425
426426 /**
@@ -683,7 +683,7 @@ const AVOption *av_opt_find2(void *obj, const char *name, const char *unit, · 256 unmodified lines
683683 * or NULL
684684 * @return next AVOption or NULL
685685 */
686−const AVOption *av_opt_next(FF_CONST_AVUTIL55 void *obj, const AVOption *prev);
686+const AVOption *av_opt_next(const void *obj, const AVOption *prev);
687687
688688 /**
689689 * Iterate over AVOptions-enabled children of obj.
@@ -835,7 +835,7 @@ int av_opt_query_ranges(AVOptionRanges **, void *obj, const char *key, int flags · 145 unmodified lines
835835 * @param src Object to copy into
836836 * @return 0 on success, negative on error
837837 */
838−int av_opt_copy(void *dest, FF_CONST_AVUTIL55 void *src);
838+int av_opt_copy(void *dest, const void *src);
839839
840840 /**
841841 * Get a default list of allowed ranges for the given option.
libavutil/version.h+0−8
@@ -115,14 +115,6 @@ · 114 unmodified lines
115115 #define FF_API_FRAME_QP (LIBAVUTIL_VERSION_MAJOR < 56)
116116 #endif
117117
118−#ifndef FF_CONST_AVUTIL55
119−#if LIBAVUTIL_VERSION_MAJOR >= 55
120−#define FF_CONST_AVUTIL55 const
121−#else
122−#define FF_CONST_AVUTIL55
123−#endif
124−#endif
125−
126118 /**
127119 * @}
128120 */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t