[SCM] libav/experimental: Remove deprecated functions and structures on next version bump.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:42:08 UTC 2013
The following commit has been merged in the experimental branch:
commit 2bbd85719c9402199ccbac60b6d6322f813e0885
Author: Diego Biurrun <diego at biurrun.de>
Date: Sat Mar 21 13:51:29 2009 +0000
Remove deprecated functions and structures on next version bump.
Originally committed as revision 18110 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 3f89ea9..a901b0c 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -2496,6 +2496,7 @@ typedef struct AVPicture {
int linesize[4]; ///< number of bytes per line
} AVPicture;
+#if LIBAVCODEC_VERSION_MAJOR < 53
/**
* AVPaletteControl
* This structure defines a method for communicating palette changes
@@ -2519,6 +2520,7 @@ typedef struct AVPaletteControl {
unsigned int palette[AVPALETTE_COUNT];
} AVPaletteControl attribute_deprecated;
+#endif
enum AVSubtitleType {
SUBTITLE_NONE,
@@ -3269,12 +3271,14 @@ AVCodecParser *av_parser_next(AVCodecParser *c);
void av_register_codec_parser(AVCodecParser *parser);
AVCodecParserContext *av_parser_init(int codec_id);
+#if LIBAVCODEC_VERSION_MAJOR < 53
attribute_deprecated
int av_parser_parse(AVCodecParserContext *s,
AVCodecContext *avctx,
uint8_t **poutbuf, int *poutbuf_size,
const uint8_t *buf, int buf_size,
int64_t pts, int64_t dts);
+#endif
/**
* Parse a packet.
diff --git a/libavcodec/bitstream.c b/libavcodec/bitstream.c
index 6781fe6..5d9bd32 100644
--- a/libavcodec/bitstream.c
+++ b/libavcodec/bitstream.c
@@ -37,6 +37,7 @@ const uint8_t ff_log2_run[32]={
8, 9,10,11,12,13,14,15
};
+#if LIBAVCODEC_VERSION_MAJOR < 53
/**
* Same as av_mallocz_static(), but does a realloc.
*
@@ -53,6 +54,7 @@ static void *ff_realloc_static(void *ptr, unsigned int size)
{
return av_realloc(ptr, size);
}
+#endif
void align_put_bits(PutBitContext *s)
{
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list