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
42#include <float.h>42#include <float.h>
43 43
44#if FF_API_OLD_AVOPTIONS44#if FF_API_OLD_AVOPTIONS
45const AVOption *av_next_option(FF_CONST_AVUTIL55 void *obj, const AVOption *last)45const AVOption *av_next_option(const void *obj, const AVOption *last)
46{46{
47 return av_opt_next(obj, last);47 return av_opt_next(obj, last);
48}48}
49#endif49#endif
50 50
51const AVOption *av_opt_next(FF_CONST_AVUTIL55 void *obj, const AVOption *last)51const AVOption *av_opt_next(const void *obj, const AVOption *last)
52{52{
53 const AVClass *class;53 const AVClass *class;
54 if (!obj)54 if (!obj)
@@ -1573,7 +1573,7 @@ static int opt_size(enum AVOptionType type) · 1518 unmodified lines
1573 return 0;1573 return 0;
1574}1574}
1575 1575
1576int av_opt_copy(void *dst, FF_CONST_AVUTIL55 void *src)1576int av_opt_copy(void *dst, const void *src)
1577{1577{
1578 const AVOption *o = NULL;1578 const AVOption *o = NULL;
1579 const AVClass *c;1579 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
420attribute_deprecated420attribute_deprecated
421int64_t av_get_int(void *obj, const char *name, const AVOption **o_out);421int64_t av_get_int(void *obj, const char *name, const AVOption **o_out);
422attribute_deprecated const char *av_get_string(void *obj, const char *name, const AVOption **o_out, char *buf, int buf_len);422attribute_deprecated const char *av_get_string(void *obj, const char *name, const AVOption **o_out, char *buf, int buf_len);
423attribute_deprecated const AVOption *av_next_option(FF_CONST_AVUTIL55 void *obj, const AVOption *last);423attribute_deprecated const AVOption *av_next_option(const void *obj, const AVOption *last);
424#endif424#endif
425 425
426/**426/**
@@ -683,7 +683,7 @@ const AVOption *av_opt_find2(void *obj, const char *name, const char *unit, · 256 unmodified lines
683 * or NULL683 * or NULL
684 * @return next AVOption or NULL684 * @return next AVOption or NULL
685 */685 */
686const AVOption *av_opt_next(FF_CONST_AVUTIL55 void *obj, const AVOption *prev);686const AVOption *av_opt_next(const void *obj, const AVOption *prev);
687 687
688/**688/**
689 * Iterate over AVOptions-enabled children of obj.689 * 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
835 * @param src Object to copy into835 * @param src Object to copy into
836 * @return 0 on success, negative on error836 * @return 0 on success, negative on error
837 */837 */
838int av_opt_copy(void *dest, FF_CONST_AVUTIL55 void *src);838int av_opt_copy(void *dest, const void *src);
839 839
840/**840/**
841 * Get a default list of allowed ranges for the given option.841 * Get a default list of allowed ranges for the given option.
libavutil/version.h+0−8
@@ -115,14 +115,6 @@ · 114 unmodified lines
115#define FF_API_FRAME_QP (LIBAVUTIL_VERSION_MAJOR < 56)115#define FF_API_FRAME_QP (LIBAVUTIL_VERSION_MAJOR < 56)
116#endif116#endif
117 117
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
126/**118/**
127 * @}119 * @}
128 */120 */

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