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
e1002454
Commit
e1002454
authored
Jun 26, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vertical align
Originally committed as revision 13996 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
c1f6eca1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
psxstr.c
libavformat/psxstr.c
+10
-10
No files found.
libavformat/psxstr.c
View file @
e1002454
...
...
@@ -36,11 +36,11 @@
#define RIFF_TAG MKTAG('R', 'I', 'F', 'F')
#define CDXA_TAG MKTAG('C', 'D', 'X', 'A')
#define RAW_CD_SECTOR_SIZE 2352
#define RAW_CD_SECTOR_SIZE
2352
#define RAW_CD_SECTOR_DATA_SIZE 2304
#define VIDEO_DATA_CHUNK_SIZE 0x7E0
#define VIDEO_DATA_HEADER_SIZE 0x38
#define RIFF_HEADER_SIZE 0x2C
#define VIDEO_DATA_CHUNK_SIZE
0x7E0
#define VIDEO_DATA_HEADER_SIZE
0x38
#define RIFF_HEADER_SIZE
0x2C
#define CDXA_TYPE_MASK 0x0E
#define CDXA_TYPE_DATA 0x08
...
...
@@ -169,8 +169,8 @@ static int str_read_header(AVFormatContext *s,
str
->
channels
[
channel
].
video_stream_index
=
st
->
index
;
st
->
codec
->
codec_type
=
CODEC_TYPE_VIDEO
;
st
->
codec
->
codec_id
=
CODEC_ID_MDEC
;
st
->
codec
->
codec_tag
=
0
;
/* no fourcc */
st
->
codec
->
codec_id
=
CODEC_ID_MDEC
;
st
->
codec
->
codec_tag
=
0
;
/* no fourcc */
st
->
codec
->
width
=
AV_RL16
(
&
sector
[
0x28
]);
st
->
codec
->
height
=
AV_RL16
(
&
sector
[
0x2A
]);
}
...
...
@@ -190,10 +190,10 @@ static int str_read_header(AVFormatContext *s,
str
->
channels
[
channel
].
audio_stream_index
=
st
->
index
;
fmt
=
sector
[
0x13
];
st
->
codec
->
codec_type
=
CODEC_TYPE_AUDIO
;
st
->
codec
->
codec_id
=
CODEC_ID_ADPCM_XA
;
st
->
codec
->
codec_tag
=
0
;
/* no fourcc */
st
->
codec
->
channels
=
(
fmt
&
1
)
?
2
:
1
;
st
->
codec
->
codec_type
=
CODEC_TYPE_AUDIO
;
st
->
codec
->
codec_id
=
CODEC_ID_ADPCM_XA
;
st
->
codec
->
codec_tag
=
0
;
/* no fourcc */
st
->
codec
->
channels
=
(
fmt
&
1
)
?
2
:
1
;
st
->
codec
->
sample_rate
=
(
fmt
&
4
)
?
18900
:
37800
;
// st->codec->bit_rate = 0; //FIXME;
st
->
codec
->
block_align
=
128
;
...
...
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