diff options
author | Måns Rullgård <mans@mansr.com> | 2010-06-15 13:26:52 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-06-15 13:26:52 +0000 |
commit | b462d13262f1a1d88c08981a742355f7c99c1959 (patch) | |
tree | 5975423b6f838804962318ef2b6ffd7c103a0dbe /libavutil/internal.h | |
parent | 2661d65a5f7ab81d4b048dd3e92db192e8ef97f2 (diff) | |
download | ffmpeg-b462d13262f1a1d88c08981a742355f7c99c1959.tar.gz |
Add compatibility wrappers for functions moved from lavf to lavc
When symbol versioning is enabled, moving symbols from one library to
another breaks binary compatibility. This adds wrappers with the old
version tag for the av_*packet functions recently moved to lavc.
Originally committed as revision 23611 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/internal.h')
-rw-r--r-- | libavutil/internal.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h index 2faafc9af1..2d744dfd4b 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -196,4 +196,15 @@ # define NULL_IF_CONFIG_SMALL(x) x #endif +#if HAVE_SYMVER_ASM_LABEL +# define FF_SYMVER(type, name, args, ver) \ + type ff_##name args __asm__ (#name "@" ver); \ + type ff_##name args +#elif HAVE_SYMVER_GNU_ASM +# define FF_SYMVER(type, name, args, ver) \ + __asm__ (".symver ff_" #name "," #name "@" ver); \ + type ff_##name args; \ + type ff_##name args +#endif + #endif /* AVUTIL_INTERNAL_H */ |