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
a647eb5a
Commit
a647eb5a
authored
Dec 03, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pvfdec: use ff_pcm_read_packet()
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
15ab0393
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
pvfdec.c
libavformat/pvfdec.c
+1
-12
No files found.
libavformat/pvfdec.c
View file @
a647eb5a
...
...
@@ -63,23 +63,12 @@ static int pvf_read_header(AVFormatContext *s)
return
0
;
}
static
int
pvf_read_packet
(
AVFormatContext
*
s
,
AVPacket
*
pkt
)
{
int
ret
;
ret
=
av_get_packet
(
s
->
pb
,
pkt
,
1024
*
s
->
streams
[
0
]
->
codec
->
block_align
);
pkt
->
flags
&=
~
AV_PKT_FLAG_CORRUPT
;
pkt
->
stream_index
=
0
;
return
ret
;
}
AVInputFormat
ff_pvf_demuxer
=
{
.
name
=
"pvf"
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"PVF (Portable Voice Format)"
),
.
read_probe
=
pvf_probe
,
.
read_header
=
pvf_read_header
,
.
read_packet
=
pvf
_read_packet
,
.
read_packet
=
ff_pcm
_read_packet
,
.
read_seek
=
ff_pcm_read_seek
,
.
extensions
=
"pvf"
,
.
flags
=
AVFMT_GENERIC_INDEX
,
...
...
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