Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
fb602cd1
Commit
fb602cd1
authored
Nov 11, 2002
by
Zdenek Kabelac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* useless commit - ignore
Originally committed as revision 1193 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
c6af86c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
avcodec.c
libavcodec/avcodec.c
+20
-4
No files found.
libavcodec/avcodec.c
View file @
fb602cd1
...
@@ -8,12 +8,16 @@
...
@@ -8,12 +8,16 @@
// private structure used to hide all internal memory allocations
// private structure used to hide all internal memory allocations
// and structures used for de/encoding - end user should
// and structures used for de/encoding - end user should
// never see any complicated structure
// never see any complicated structure
typedef
struct
typedef
struct
private_handle
{
{
AVCodec
*
avcodec
;
AVCodec
*
avcodec
;
AVCodecContext
avcontext
;
AVCodecContext
avcontext
;
struct
private_handle
*
next
;
struct
private_handle
*
prev
;
}
private_handle_t
;
}
private_handle_t
;
static
private_handle_t
*
handle_first
=
0
;
static
AVCodec
*
avcodec_find_by_fcc
(
uint32_t
fcc
)
static
AVCodec
*
avcodec_find_by_fcc
(
uint32_t
fcc
)
{
{
// translation table
// translation table
...
@@ -23,7 +27,7 @@ static AVCodec* avcodec_find_by_fcc(uint32_t fcc)
...
@@ -23,7 +27,7 @@ static AVCodec* avcodec_find_by_fcc(uint32_t fcc)
}
lc
[]
=
{
}
lc
[]
=
{
{
CODEC_ID_H263
,
{
MKTAG
(
'U'
,
'2'
,
'6'
,
'3'
),
0
}
},
{
CODEC_ID_H263
,
{
MKTAG
(
'U'
,
'2'
,
'6'
,
'3'
),
0
}
},
{
CODEC_ID_H263I
,
{
MKTAG
(
'I'
,
'2'
,
'6'
,
'3'
),
0
}
},
{
CODEC_ID_H263I
,
{
MKTAG
(
'I'
,
'2'
,
'6'
,
'3'
),
0
}
},
{
CODEC_ID_MSMPEG4
,
{
MKTAG
(
'D'
,
'I'
,
'V'
,
'3'
),
0
}
},
{
CODEC_ID_MSMPEG4
V3
,
{
MKTAG
(
'D'
,
'I'
,
'V'
,
'3'
),
0
}
},
{
CODEC_ID_MPEG4
,
{
MKTAG
(
'D'
,
'I'
,
'V'
,
'X'
),
MKTAG
(
'D'
,
'X'
,
'5'
,
'0'
),
0
}
},
{
CODEC_ID_MPEG4
,
{
MKTAG
(
'D'
,
'I'
,
'V'
,
'X'
),
MKTAG
(
'D'
,
'X'
,
'5'
,
'0'
),
0
}
},
{
CODEC_ID_MSMPEG4V2
,
{
MKTAG
(
'M'
,
'P'
,
'4'
,
'2'
),
0
}
},
{
CODEC_ID_MSMPEG4V2
,
{
MKTAG
(
'M'
,
'P'
,
'4'
,
'2'
),
0
}
},
{
CODEC_ID_MJPEG
,
{
MKTAG
(
'M'
,
'J'
,
'P'
,
'G'
),
0
}
},
{
CODEC_ID_MJPEG
,
{
MKTAG
(
'M'
,
'J'
,
'P'
,
'G'
),
0
}
},
...
@@ -51,10 +55,22 @@ static private_handle_t* create_handle()
...
@@ -51,10 +55,22 @@ static private_handle_t* create_handle()
private_handle_t
*
t
=
malloc
(
sizeof
(
private_handle_t
));
private_handle_t
*
t
=
malloc
(
sizeof
(
private_handle_t
));
if
(
!
t
)
if
(
!
t
)
return
NULL
;
return
NULL
;
memset
(
t
,
0
,
sizeof
(
*
t
));
// register and fill
// register and fill
avcodec_init
();
if
(
!
handle_first
)
avcodec_register_all
();
{
avcodec_init
();
avcodec_register_all
();
handle_first
=
t
;
}
else
{
t
->
prev
=
handle_first
->
next
;
handle_first
->
next
=
t
;
t
->
next
=
handle_first
;
}
return
t
;
return
t
;
}
}
...
...
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