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
74e96eb7
Commit
74e96eb7
authored
Dec 01, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pmpdec: don't use deprecated av_set_pts_info.
parent
37fed0e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
pmpdec.c
libavformat/pmpdec.c
+3
-2
No files found.
libavformat/pmpdec.c
View file @
74e96eb7
...
...
@@ -21,6 +21,7 @@
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "internal.h"
typedef
struct
PMPContext
{
int
cur_stream
;
...
...
@@ -70,7 +71,7 @@ static int pmp_header(AVFormatContext *s, AVFormatParameters *ap)
tb_num
=
avio_rl32
(
pb
);
tb_den
=
avio_rl32
(
pb
);
av_set_pts_info
(
vst
,
32
,
tb_num
,
tb_den
);
av
priv
_set_pts_info
(
vst
,
32
,
tb_num
,
tb_den
);
vst
->
nb_frames
=
index_cnt
;
vst
->
duration
=
index_cnt
;
...
...
@@ -98,7 +99,7 @@ static int pmp_header(AVFormatContext *s, AVFormatParameters *ap)
ast
->
codec
->
codec_id
=
audio_codec_id
;
ast
->
codec
->
channels
=
channels
;
ast
->
codec
->
sample_rate
=
srate
;
av_set_pts_info
(
ast
,
32
,
1
,
srate
);
av
priv
_set_pts_info
(
ast
,
32
,
1
,
srate
);
}
pos
=
avio_tell
(
pb
)
+
4
*
index_cnt
;
for
(
i
=
0
;
i
<
index_cnt
;
i
++
)
{
...
...
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