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
01be6fa9
Commit
01be6fa9
authored
Jan 11, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
psx-str: fix audio pts
Each packet has 18 sectors with 224/channels samples in each sector.
parent
d0ab5850
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
psxstr.c
libavformat/psxstr.c
+4
-1
No files found.
libavformat/psxstr.c
View file @
01be6fa9
...
...
@@ -224,7 +224,9 @@ static int str_read_packet(AVFormatContext *s,
// st->codec->bit_rate = 0; //FIXME;
st
->
codec
->
block_align
=
128
;
avpriv_set_pts_info
(
st
,
64
,
128
,
st
->
codec
->
sample_rate
);
avpriv_set_pts_info
(
st
,
64
,
18
*
224
/
st
->
codec
->
channels
,
st
->
codec
->
sample_rate
);
st
->
start_time
=
0
;
}
pkt
=
ret_pkt
;
if
(
av_new_packet
(
pkt
,
2304
))
...
...
@@ -233,6 +235,7 @@ static int str_read_packet(AVFormatContext *s,
pkt
->
stream_index
=
str
->
channels
[
channel
].
audio_stream_index
;
pkt
->
duration
=
1
;
return
0
;
default:
av_log
(
s
,
AV_LOG_WARNING
,
"Unknown sector type %02X
\n
"
,
sector
[
0x12
]);
...
...
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