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
a74127c0
Commit
a74127c0
authored
Aug 15, 2001
by
Fabrice Bellard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32 fixes
Originally committed as revision 110 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
d0a0b248
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
38 deletions
+42
-38
Makefile
libav/Makefile
+5
-1
avio.c
libav/avio.c
+3
-2
common.h
libavcodec/common.h
+31
-2
idct_mmx.c
libavcodec/i386/idct_mmx.c
+1
-1
mjpeg.c
libavcodec/mjpeg.c
+1
-16
mpeg12.c
libavcodec/mpeg12.c
+1
-16
No files found.
libav/Makefile
View file @
a74127c0
...
...
@@ -4,12 +4,16 @@ CFLAGS= $(OPTFLAGS) -Wall -g -I../libavcodec -DHAVE_AV_CONFIG_H
OBJS
=
rm.o mpeg.o asf.o avienc.o jpeg.o swf.o wav.o raw.o
\
avidec.o ffm.o
\
avio.o aviobuf.o utils.o
\
udp.o http.o
file.o img.o
file.o img.o
ifeq
($(CONFIG_GRAB),yes)
OBJS
+=
grab.o audio.o
endif
ifneq
($(CONFIG_WIN32),yes)
OBJS
+=
udp.o http.o
endif
LIB
=
libav.a
all
:
$(LIB)
...
...
libav/avio.c
View file @
a74127c0
...
...
@@ -45,7 +45,8 @@ int url_open(URLContext **puc, const char *filename, int flags)
*
q
++
=
*
p
;
p
++
;
}
if
(
*
p
==
'\0'
)
{
/* if the protocol has length 1, we consider it is a dos drive */
if
(
*
p
==
'\0'
||
(
q
-
proto_str
)
<=
1
)
{
strcpy
(
proto_str
,
"file"
);
}
else
{
*
q
=
'\0'
;
...
...
@@ -53,7 +54,7 @@ int url_open(URLContext **puc, const char *filename, int flags)
up
=
first_protocol
;
while
(
up
!=
NULL
)
{
if
(
!
strcmp
(
proto_str
,
up
->
name
))
if
(
!
strcmp
(
proto_str
,
up
->
name
))
goto
found
;
up
=
up
->
next
;
}
...
...
libavcodec/common.h
View file @
a74127c0
...
...
@@ -4,7 +4,7 @@
#define FFMPEG_VERSION_INT 0x000405
#define FFMPEG_VERSION "0.4.5"
#if
def WIN32
#if
defined(WIN32) && !defined(__MINGW32__)
#define CONFIG_WIN32
#endif
...
...
@@ -43,6 +43,7 @@ typedef INT16 int16_t;
typedef
UINT32
uint32_t
;
typedef
INT32
int32_t
;
#ifndef __MINGW32__
#define INT64_C(c) (c ## i64)
#define UINT64_C(c) (c ## i64)
...
...
@@ -56,6 +57,11 @@ typedef INT32 int32_t;
#pragma warning( disable : 4244 )
#pragma warning( disable : 4305 )
#else
#define INT64_C(c) (c ## LL)
#define UINT64_C(c) (c ## ULL)
#endif
/* __MINGW32__ */
#define M_PI 3.14159265358979323846
#define M_SQRT2 1.41421356237309504880
/* sqrt(2) */
...
...
@@ -71,10 +77,13 @@ typedef INT32 int32_t;
#define snprintf _snprintf
#ifndef __MINGW32__
/* no config.h with VC */
#define CONFIG_ENCODERS 1
#define CONFIG_DECODERS 1
#define CONFIG_AC3 1
#define CONFIG_MPGLIB 1
#endif
#else
...
...
@@ -112,15 +121,35 @@ typedef signed long long INT64;
#include "fastmemcpy.h"
#endif
#endif
/* HAVE_AV_CONFIG_H */
#endif
/* !CONFIG_WIN32 */
/* debug stuff */
#ifdef HAVE_AV_CONFIG_H
#ifndef DEBUG
#define NDEBUG
#endif
#include <assert.h>
#endif
/* HAVE_AV_CONFIG_H */
/* dprintf macros */
#if defined(CONFIG_WIN32) && !defined(__MINGW32__)
inline
void
dprintf
(
const
char
*
fmt
,...)
{}
#else
#ifdef DEBUG
#define dprintf(fmt,args...) printf(fmt, ## args)
#else
#define dprintf(fmt,args...)
#endif
#endif
/* !CONFIG_WIN32 */
#endif
/* HAVE_AV_CONFIG_H */
/* bit output */
struct
PutBitContext
;
...
...
libavcodec/i386/idct_mmx.c
View file @
a74127c0
...
...
@@ -22,7 +22,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include
<inttypes.h>
#include
"../common.h"
#include "mmx.h"
...
...
libavcodec/mjpeg.c
View file @
a74127c0
...
...
@@ -16,6 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
//#define DEBUG
#include "avcodec.h"
#include "dsputil.h"
#include "mpegvideo.h"
...
...
@@ -419,22 +420,6 @@ void mjpeg_encode_mb(MpegEncContext *s,
/******************************************/
/* decoding */
//#define DEBUG
#ifndef CONFIG_WIN32
#ifdef DEBUG
#define dprintf(fmt,args...) printf(fmt, ## args)
#else
#define dprintf(fmt,args...)
#endif
#else
inline
void
dprintf
(
const
char
*
fmt
,...)
{}
#endif
/* compressed picture size */
#define PICTURE_BUFFER_SIZE 100000
...
...
libavcodec/mpeg12.c
View file @
a74127c0
...
...
@@ -16,28 +16,13 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
//#define DEBUG
#include "avcodec.h"
#include "dsputil.h"
#include "mpegvideo.h"
#include "mpeg12data.h"
//#define DEBUG
#ifndef CONFIG_WIN32
#ifdef DEBUG
#define dprintf(fmt,args...) printf(fmt, ## args)
#else
#define dprintf(fmt,args...)
#endif
#else
inline
void
dprintf
(
const
char
*
fmt
,...)
{}
#endif
/* Start codes. */
#define SEQ_END_CODE 0x000001b7
#define SEQ_START_CODE 0x000001b3
...
...
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