Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
cb45553f
Commit
cb45553f
authored
Oct 20, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove pointless #undefs of previously forbidden functions.
parent
90153465
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
0 additions
and
57 deletions
+0
-57
golomb-test.c
libavcodec/golomb-test.c
+0
-1
iirfilter.c
libavcodec/iirfilter.c
+0
-1
libfaac.c
libavcodec/libfaac.c
+0
-2
libcdio.c
libavdevice/libcdio.c
+0
-3
libdc1394.c
libavdevice/libdc1394.c
+0
-2
timefilter.c
libavdevice/timefilter.c
+0
-2
filtfmts.c
libavfilter/filtfmts.c
+0
-3
vf_drawtext.c
libavfilter/vf_drawtext.c
+0
-2
network.c
libavformat/network.c
+0
-2
output-example.c
libavformat/output-example.c
+0
-2
seek-test.c
libavformat/seek-test.c
+0
-3
url-test.c
libavformat/url-test.c
+0
-3
utils.c
libavformat/utils.c
+0
-2
avstring.c
libavutil/avstring.c
+0
-1
base64.c
libavutil/base64.c
+0
-2
blowfish.c
libavutil/blowfish.c
+0
-2
cpu.c
libavutil/cpu.c
+0
-1
crc.c
libavutil/crc.c
+0
-1
des.c
libavutil/des.c
+0
-3
eval.c
libavutil/eval.c
+0
-1
fifo.c
libavutil/fifo.c
+0
-2
log.c
libavutil/log.c
+0
-2
md5.c
libavutil/md5.c
+0
-1
mem.c
libavutil/mem.c
+0
-5
opt.c
libavutil/opt.c
+0
-2
parseutils.c
libavutil/parseutils.c
+0
-3
sha.c
libavutil/sha.c
+0
-1
xtea.c
libavutil/xtea.c
+0
-2
No files found.
libavcodec/golomb-test.c
View file @
cb45553f
...
...
@@ -25,7 +25,6 @@
#include "golomb.h"
#include "put_bits.h"
#undef fprintf
#define COUNT 8191
#define SIZE (COUNT * 4)
...
...
libavcodec/iirfilter.c
View file @
cb45553f
...
...
@@ -312,7 +312,6 @@ av_cold void ff_iir_filter_free_coeffs(struct FFIIRFilterCoeffs *coeffs)
}
#ifdef TEST
#undef printf
#include <stdio.h>
#define FILT_ORDER 4
...
...
libavcodec/libfaac.c
View file @
cb45553f
...
...
@@ -159,9 +159,7 @@ static av_cold int Faac_encode_init(AVCodecContext *avctx)
memcpy
(
avctx
->
extradata
,
buffer
,
avctx
->
extradata_size
);
faac_cfg
->
outputFormat
=
0
;
}
#undef free
free
(
buffer
);
#define free please_use_av_free
}
if
(
!
faacEncSetConfiguration
(
s
->
faac_handle
,
faac_cfg
))
{
...
...
libavdevice/libcdio.c
View file @
cb45553f
...
...
@@ -33,9 +33,6 @@
#include "libavformat/avformat.h"
#include "libavformat/internal.h"
/* cdio returns some malloced strings that need to be free()d */
#undef free
typedef
struct
CDIOContext
{
AVClass
*
class
;
cdrom_drive_t
*
drive
;
...
...
libavdevice/libdc1394.c
View file @
cb45553f
...
...
@@ -48,8 +48,6 @@
#define DC1394_FRAMERATE_240 FRAMERATE_240
#endif
#undef free
typedef
struct
dc1394_data
{
AVClass
*
class
;
#if HAVE_LIBDC1394_1
...
...
libavdevice/timefilter.c
View file @
cb45553f
...
...
@@ -78,8 +78,6 @@ double ff_timefilter_update(TimeFilter *self, double system_time, double period)
#include "libavutil/lfg.h"
#define LFG_MAX ((1LL << 32) - 1)
#undef printf
int
main
(
void
)
{
AVLFG
prng
;
...
...
libavfilter/filtfmts.c
View file @
cb45553f
...
...
@@ -25,9 +25,6 @@
#include "libavfilter/avfilter.h"
#include "libavfilter/formats.h"
#undef fprintf
#undef printf
int
main
(
int
argc
,
char
**
argv
)
{
AVFilter
*
filter
;
...
...
libavfilter/vf_drawtext.c
View file @
cb45553f
...
...
@@ -46,8 +46,6 @@
#include "internal.h"
#include "video.h"
#undef time
#include <ft2build.h>
#include <freetype/config/ftheader.h>
#include FT_FREETYPE_H
...
...
libavformat/network.c
View file @
cb45553f
...
...
@@ -57,8 +57,6 @@ static unsigned long openssl_thread_id(void)
#if HAVE_THREADS && GNUTLS_VERSION_NUMBER <= 0x020b00
#include <gcrypt.h>
#include <errno.h>
#undef malloc
#undef free
GCRY_THREAD_OPTION_PTHREAD_IMPL
;
#endif
#endif
...
...
libavformat/output-example.c
View file @
cb45553f
...
...
@@ -38,8 +38,6 @@
#include "libavformat/avformat.h"
#include "libswscale/swscale.h"
#undef exit
/* 5 seconds stream duration */
#define STREAM_DURATION 5.0
#define STREAM_FRAME_RATE 25
/* 25 images/s */
...
...
libavformat/seek-test.c
View file @
cb45553f
...
...
@@ -28,9 +28,6 @@
#include "libavutil/mathematics.h"
#include "libavformat/avformat.h"
#undef printf
#undef fprintf
static
char
buffer
[
20
];
static
const
char
*
ret_str
(
int
v
)
...
...
libavformat/url-test.c
View file @
cb45553f
...
...
@@ -20,9 +20,6 @@
#include "internal.h"
#undef printf
#undef exit
static
void
test
(
const
char
*
base
,
const
char
*
rel
)
{
char
buf
[
200
],
buf2
[
200
];
...
...
libavformat/utils.c
View file @
cb45553f
...
...
@@ -3092,7 +3092,6 @@ static void hex_dump_internal(void *avcl, FILE *f, int level,
const
uint8_t
*
buf
,
int
size
)
{
int
len
,
i
,
j
,
c
;
#undef fprintf
#define PRINT(...) do { if (!f) av_log(avcl, level, __VA_ARGS__); else fprintf(f, __VA_ARGS__); } while(0)
for
(
i
=
0
;
i
<
size
;
i
+=
16
)
{
...
...
@@ -3130,7 +3129,6 @@ void av_hex_dump_log(void *avcl, int level, const uint8_t *buf, int size)
static
void
pkt_dump_internal
(
void
*
avcl
,
FILE
*
f
,
int
level
,
AVPacket
*
pkt
,
int
dump_payload
,
AVRational
time_base
)
{
#undef fprintf
#define PRINT(...) do { if (!f) av_log(avcl, level, __VA_ARGS__); else fprintf(f, __VA_ARGS__); } while(0)
PRINT
(
"stream #%d:
\n
"
,
pkt
->
stream_index
);
PRINT
(
" keyframe=%d
\n
"
,
((
pkt
->
flags
&
AV_PKT_FLAG_KEY
)
!=
0
));
...
...
libavutil/avstring.c
View file @
cb45553f
...
...
@@ -159,7 +159,6 @@ int av_strncasecmp(const char *a, const char *b, size_t n)
#ifdef TEST
#include "common.h"
#undef printf
int
main
(
void
)
{
...
...
libavutil/base64.c
View file @
cb45553f
...
...
@@ -101,8 +101,6 @@ char *av_base64_encode(char *out, int out_size, const uint8_t *in, int in_size)
#ifdef TEST
#undef printf
#define MAX_DATA_SIZE 1024
#define MAX_ENCODED_SIZE 2048
...
...
libavutil/blowfish.c
View file @
cb45553f
...
...
@@ -428,7 +428,6 @@ void av_blowfish_crypt(AVBlowfish *ctx, uint8_t *dst, const uint8_t *src,
#ifdef TEST
#include <stdio.h>
#undef printf
#define NUM_VARIABLE_KEY_TESTS 34
...
...
@@ -531,7 +530,6 @@ static const uint8_t ciphertext2[16] = {
#define IV "blowfish"
#undef exit
static
void
test_blowfish
(
AVBlowfish
*
ctx
,
uint8_t
*
dst
,
const
uint8_t
*
src
,
const
uint8_t
*
ref
,
int
len
,
uint8_t
*
iv
,
int
dir
,
const
char
*
test
)
...
...
libavutil/cpu.c
View file @
cb45553f
...
...
@@ -111,7 +111,6 @@ int av_parse_cpu_flags(const char *s)
#ifdef TEST
#undef printf
#include <stdio.h>
static
const
struct
{
...
...
libavutil/crc.c
View file @
cb45553f
...
...
@@ -113,7 +113,6 @@ uint32_t av_crc(const AVCRC *ctx, uint32_t crc,
}
#ifdef TEST
#undef printf
int
main
(
void
)
{
uint8_t
buf
[
1999
];
...
...
libavutil/des.c
View file @
cb45553f
...
...
@@ -337,9 +337,6 @@ void av_des_mac(AVDES *d, uint8_t *dst, const uint8_t *src, int count) {
}
#ifdef TEST
#undef printf
#undef rand
#undef srand
#include <stdlib.h>
#include <stdio.h>
#include "libavutil/time.h"
...
...
libavutil/eval.c
View file @
cb45553f
...
...
@@ -545,7 +545,6 @@ int av_expr_parse_and_eval(double *d, const char *s,
}
#ifdef TEST
#undef printf
#include <string.h>
static
const
double
const_values
[]
=
{
...
...
libavutil/fifo.c
View file @
cb45553f
...
...
@@ -130,8 +130,6 @@ void av_fifo_drain(AVFifoBuffer *f, int size)
#ifdef TEST
#undef printf
int
main
(
void
)
{
/* create a FIFO buffer */
...
...
libavutil/log.c
View file @
cb45553f
...
...
@@ -55,7 +55,6 @@ static const uint8_t color[] = { 0x41, 0x41, 0x11, 0x03, 9, 0x02, 0x06 };
#endif
static
int
use_color
=
-
1
;
#undef fprintf
static
void
colored_fputs
(
int
level
,
const
char
*
str
)
{
if
(
use_color
<
0
)
{
...
...
@@ -104,7 +103,6 @@ void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl)
if
(
level
>
av_log_level
)
return
;
line
[
0
]
=
0
;
#undef fprintf
if
(
print_prefix
&&
avc
)
{
if
(
avc
->
parent_log_context_offset
)
{
AVClass
**
parent
=
*
(
AVClass
***
)
(((
uint8_t
*
)
ptr
)
+
...
...
libavutil/md5.c
View file @
cb45553f
...
...
@@ -182,7 +182,6 @@ void av_md5_sum(uint8_t *dst, const uint8_t *src, const int len)
}
#ifdef TEST
#undef printf
#include <stdio.h>
static
void
print_md5
(
uint8_t
*
md5
)
...
...
libavutil/mem.c
View file @
cb45553f
...
...
@@ -38,11 +38,6 @@
#include "intreadwrite.h"
#include "mem.h"
/* here we can use OS-dependent allocation functions */
#undef free
#undef malloc
#undef realloc
#ifdef MALLOC_PREFIX
#define malloc AV_JOIN(MALLOC_PREFIX, malloc)
...
...
libavutil/opt.c
View file @
cb45553f
...
...
@@ -685,8 +685,6 @@ const AVClass *av_opt_child_class_next(const AVClass *parent, const AVClass *pre
#ifdef TEST
#undef printf
typedef
struct
TestContext
{
const
AVClass
*
class
;
...
...
libavutil/parseutils.c
View file @
cb45553f
...
...
@@ -498,7 +498,6 @@ int av_parse_time(int64_t *timeval, const char *timestr, int duration)
char
lastch
;
int
negative
=
0
;
#undef time
time_t
now
=
time
(
0
);
len
=
strlen
(
timestr
);
...
...
@@ -643,8 +642,6 @@ int av_find_info_tag(char *arg, int arg_size, const char *tag1, const char *info
#ifdef TEST
#undef printf
int
main
(
void
)
{
printf
(
"Testing av_parse_video_rate()
\n
"
);
...
...
libavutil/sha.c
View file @
cb45553f
...
...
@@ -334,7 +334,6 @@ void av_sha_final(AVSHA* ctx, uint8_t *digest)
#ifdef TEST
#include <stdio.h>
#undef printf
int
main
(
void
)
{
...
...
libavutil/xtea.c
View file @
cb45553f
...
...
@@ -101,7 +101,6 @@ void av_xtea_crypt(AVXTEA *ctx, uint8_t *dst, const uint8_t *src, int count,
#ifdef TEST
#include <stdio.h>
#undef printf
#define XTEA_NUM_TESTS 6
...
...
@@ -138,7 +137,6 @@ static const uint8_t xtea_test_ct[XTEA_NUM_TESTS][8] = {
{
0x41
,
0x41
,
0x41
,
0x41
,
0x41
,
0x41
,
0x41
,
0x41
}
};
#undef exit
static
void
test_xtea
(
AVXTEA
*
ctx
,
uint8_t
*
dst
,
const
uint8_t
*
src
,
const
uint8_t
*
ref
,
int
len
,
uint8_t
*
iv
,
int
dir
,
const
char
*
test
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment