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
9be653d0
Commit
9be653d0
authored
20 years ago
by
Mike Melanson
Browse files
Options
Downloads
Patches
Plain Diff
cvs diff before cvs commit
Originally committed as revision 3240 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
0bd586c5
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
libavformat/ipmovie.c
+1
-1
1 addition, 1 deletion
libavformat/ipmovie.c
libavformat/mpeg.c
+0
-8
0 additions, 8 deletions
libavformat/mpeg.c
libavformat/raw.c
+0
-71
0 additions, 71 deletions
libavformat/raw.c
with
1 addition
and
80 deletions
libavformat/ipmovie.c
+
1
−
1
View file @
9be653d0
...
...
@@ -34,7 +34,7 @@
/* debugging support: #define DEBUG_IPMOVIE as non-zero to see extremely
* verbose information about the demux process */
#define DEBUG_IPMOVIE
1
#define DEBUG_IPMOVIE
0
#if DEBUG_IPMOVIE
#define debug_ipmovie printf
...
...
This diff is collapsed.
Click to expand it.
libavformat/mpeg.c
+
0
−
8
View file @
9be653d0
...
...
@@ -1351,14 +1351,6 @@ static int mpegps_read_packet(AVFormatContext *s,
pkt->stream_index, pkt->pts / 90000.0, pkt->dts / 90000.0);
#endif
#if 1
//#ifdef CONFIG_ADX
if
(
codec_id
==
CODEC_ID_MP2
&&
is_adx
(
pkt
->
data
,
pkt
->
size
))
{
printf
(
"found ADX...
\n
"
);
st
->
codec
.
codec_id
=
CODEC_ID_ADPCM_ADX
;
}
#endif //CONFIG_ADX
return
0
;
}
...
...
This diff is collapsed.
Click to expand it.
libavformat/raw.c
+
0
−
71
View file @
9be653d0
...
...
@@ -601,73 +601,6 @@ AVOutputFormat null_oformat = {
};
#endif //CONFIG_ENCODERS
static
int
adx_probe
(
AVProbeData
*
p
)
{
if
(
is_adx
(
p
->
buf
,
p
->
buf_size
))
return
100
;
return
0
;
}
static
int
adx_read_header
(
AVFormatContext
*
s
,
AVFormatParameters
*
ap
)
{
AVStream
*
st
;
st
=
av_new_stream
(
s
,
0
);
if
(
!
st
)
return
AVERROR_NOMEM
;
st
->
codec
.
codec_type
=
CODEC_TYPE_AUDIO
;
st
->
codec
.
codec_id
=
CODEC_ID_ADPCM_ADX
;
/* the parameters will be extracted from the compressed bitstream */
return
0
;
}
AVInputFormat
adx_iformat
=
{
"adx"
,
"SEGA CRI ADX audio"
,
0
,
adx_probe
,
adx_read_header
,
raw_read_packet
,
raw_read_close
,
.
extensions
=
"adx"
,
//FIXME remove after writing mpeg4_probe
};
#ifdef CONFIG_ENCODERS
static
int
adx_write_trailer
(
AVFormatContext
*
s
)
{
ByteIOContext
*
pb
=
&
s
->
pb
;
offset_t
file_size
;
if
(
!
url_is_streamed
(
&
s
->
pb
))
{
/* update file size */
file_size
=
url_ftell
(
pb
);
url_fseek
(
pb
,
0
,
SEEK_SET
);
put_be32
(
pb
,
(
uint32_t
)(
file_size
-
8
));
url_fseek
(
pb
,
file_size
,
SEEK_SET
);
put_flush_packet
(
pb
);
}
return
0
;
}
AVOutputFormat
adx_oformat
=
{
"adx"
,
"SEGA CRI ADX audio"
,
NULL
,
"adx"
,
0
,
CODEC_ID_ADPCM_ADX
,
0
,
raw_write_header
,
raw_write_packet
,
raw_write_trailer
,
};
#endif //CONFIG_ENCODERS
#ifndef CONFIG_ENCODERS
#define av_register_output_format(format)
#endif
...
...
@@ -718,9 +651,5 @@ int raw_init(void)
av_register_output_format
(
&
rawvideo_oformat
);
av_register_output_format
(
&
null_oformat
);
av_register_input_format
(
&
adx_iformat
);
av_register_output_format
(
&
adx_oformat
);
return
0
;
}
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