History

Remove more functions disabled by major version bump.

Originally committed as revision 17876 to svn://svn.ffmpeg.org/ffmpeg/trunk

Reimar Döffinger committed 17 years ago

Commit fe4032b1 parent 3fb10844 files · +0 −47Browse files

Unified · Split

4 files
  1. libavutil/fifo.c +0 −13
  2. libavutil/fifo.h +0 −20
  3. libavutil/lzo.c +0 −6
  4. libavutil/rc4.c +0 −8
libavutil/fifo.c+0−13
@@ -48,12 +48,6 @@ int av_fifo_size(AVFifoBuffer *f) · 47 unmodified lines
4848 return (uint32_t)(f->wndx - f->rndx);
4949 }
5050
51−#if LIBAVUTIL_VERSION_MAJOR < 50
52−void av_fifo_realloc(AVFifoBuffer *f, unsigned int new_size) {
53− av_fifo_realloc2(f, new_size);
54−}
55−#endif
56−
5751 int av_fifo_realloc2(AVFifoBuffer *f, unsigned int new_size) {
5852 unsigned int old_size= f->end - f->buffer;
5953
@@ -73,13 +67,6 @@ int av_fifo_realloc2(AVFifoBuffer *f, unsigned int new_size) { · 13 unmodified lines
7367 return 0;
7468 }
7569
76−#if LIBAVUTIL_VERSION_MAJOR < 50
77−void av_fifo_write(AVFifoBuffer *f, const uint8_t *buf, int size)
78−{
79− av_fifo_generic_write(f, (void *)buf, size, NULL);
80−}
81−#endif
82−
8370 int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int (*func)(void*, void*, int))
8471 {
8572 int total = size;
libavutil/fifo.h+0−20
@@ -64,16 +64,6 @@ int av_fifo_size(AVFifoBuffer *f); · 63 unmodified lines
6464 */
6565 int av_fifo_generic_read(AVFifoBuffer *f, int buf_size, void (*func)(void*, void*, int), void* dest);
6666
67−#if LIBAVUTIL_VERSION_MAJOR < 50
68−/**
69− * Writes data into an AVFifoBuffer.
70− * @param *f AVFifoBuffer to write to
71− * @param *buf data source
72− * @param size data size
73− */
74−attribute_deprecated void av_fifo_write(AVFifoBuffer *f, const uint8_t *buf, int size);
75−#endif
76−
7767 /**
7868 * Feeds data from a user-supplied callback to an AVFifoBuffer.
7969 * @param *f AVFifoBuffer to write to
@@ -88,16 +78,6 @@ attribute_deprecated void av_fifo_write(AVFifoBuffer *f, const uint8_t *buf, int · 8 unmodified lines
8878 */
8979 int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int (*func)(void*, void*, int));
9080
91−#if LIBAVUTIL_VERSION_MAJOR < 50
92−/**
93− * Resizes an AVFifoBuffer.
94− * @param *f AVFifoBuffer to resize
95− * @param size new AVFifoBuffer size in bytes
96− * @see av_fifo_realloc2()
97− */
98−attribute_deprecated void av_fifo_realloc(AVFifoBuffer *f, unsigned int size);
99−#endif
100−
10181 /**
10282 * Resizes an AVFifoBuffer.
10383 * @param *f AVFifoBuffer to resize
libavutil/lzo.c+0−6
@@ -234,12 +234,6 @@ int av_lzo1x_decode(void *out, int *outlen, const void *in, int *inlen) { · 233 unmodified lines
234234 return c.error;
235235 }
236236
237−#if LIBAVUTIL_VERSION_MAJOR < 50
238−int lzo1x_decode(void *out, int *outlen, const void *in, int *inlen) {
239− return av_lzo1x_decode(out, outlen, in, inlen);
240−}
241−#endif
242−
243237 #ifdef TEST
244238 #include <stdio.h>
245239 #include <lzo/lzo1x.h>
libavutil/rc4.c+0−8
@@ -59,11 +59,3 @@ void av_rc4_crypt(AVRC4 *r, uint8_t *dst, const uint8_t *src, int count, uint8_t · 58 unmodified lines
5959 }
6060 r->x = x; r->y = y;
6161 }
62−
63−#if LIBAVUTIL_VERSION_MAJOR < 50
64−void ff_rc4_enc(const uint8_t *key, int keylen, uint8_t *data, int datalen) {
65− AVRC4 r;
66− av_rc4_init(&r, key, keylen * 8, 0);
67− av_rc4_crypt(&r, data, data, datalen, NULL, 0);
68−}
69−#endif

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