Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
08cb1950
Commit
08cb1950
authored
18 years ago
by
Michael Niedermayer
Browse files
Options
Downloads
Patches
Plain Diff
kill 3 more av_mallocz_static()
Originally committed as revision 8397 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
9608652d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
libavcodec/utils.c
+2
-0
2 additions, 0 deletions
libavcodec/utils.c
libavutil/crc.c
+7
-0
7 additions, 0 deletions
libavutil/crc.c
libavutil/crc.h
+7
-0
7 additions, 0 deletions
libavutil/crc.h
with
16 additions
and
0 deletions
libavcodec/utils.c
+
2
−
0
View file @
08cb1950
...
...
@@ -1189,9 +1189,11 @@ unsigned avcodec_build( void )
}
static
void
init_crcs
(
void
){
#if LIBAVUTIL_VERSION_INT < (50<<16)
av_crc04C11DB7
=
av_mallocz_static
(
sizeof
(
AVCRC
)
*
257
);
av_crc8005
=
av_mallocz_static
(
sizeof
(
AVCRC
)
*
257
);
av_crc07
=
av_mallocz_static
(
sizeof
(
AVCRC
)
*
257
);
#endif
av_crc_init
(
av_crc04C11DB7
,
0
,
32
,
0x04c11db7
,
sizeof
(
AVCRC
)
*
257
);
av_crc_init
(
av_crc8005
,
0
,
16
,
0x8005
,
sizeof
(
AVCRC
)
*
257
);
av_crc_init
(
av_crc07
,
0
,
8
,
0x07
,
sizeof
(
AVCRC
)
*
257
);
...
...
This diff is collapsed.
Click to expand it.
libavutil/crc.c
+
7
−
0
View file @
08cb1950
...
...
@@ -21,10 +21,17 @@
#include
"common.h"
#include
"crc.h"
#if LIBAVUTIL_VERSION_INT < (50<<16)
AVCRC
*
av_crcEDB88320
;
AVCRC
*
av_crc04C11DB7
;
AVCRC
*
av_crc8005
;
AVCRC
*
av_crc07
;
#else
AVCRC
av_crcEDB88320
[
257
];
AVCRC
av_crc04C11DB7
[
257
];
AVCRC
av_crc8005
[
257
];
AVCRC
av_crc07
[
257
];
#endif
/**
* Inits a crc table.
...
...
This diff is collapsed.
Click to expand it.
libavutil/crc.h
+
7
−
0
View file @
08cb1950
...
...
@@ -23,10 +23,17 @@
typedef
uint32_t
AVCRC
;
#if LIBAVUTIL_VERSION_INT < (50<<16)
extern
AVCRC
*
av_crcEDB88320
;
extern
AVCRC
*
av_crc04C11DB7
;
extern
AVCRC
*
av_crc8005
;
extern
AVCRC
*
av_crc07
;
#else
extern
AVCRC
av_crcEDB88320
[];
extern
AVCRC
av_crc04C11DB7
[];
extern
AVCRC
av_crc8005
[];
extern
AVCRC
av_crc07
[];
#endif
int
av_crc_init
(
AVCRC
*
ctx
,
int
le
,
int
bits
,
uint32_t
poly
,
int
ctx_size
);
uint32_t
av_crc
(
const
AVCRC
*
ctx
,
uint32_t
start_crc
,
const
uint8_t
*
buffer
,
size_t
length
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment