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
15ab0393
Commit
15ab0393
authored
Dec 03, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avr: use ff_pcm_read_packet()
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
93dc8ed0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
Makefile
libavformat/Makefile
+1
-1
avr.c
libavformat/avr.c
+3
-2
No files found.
libavformat/Makefile
View file @
15ab0393
...
...
@@ -78,7 +78,7 @@ OBJS-$(CONFIG_AVI_DEMUXER) += avidec.o
OBJS-$(CONFIG_AVI_MUXER)
+=
avienc.o
OBJS-$(CONFIG_AVISYNTH)
+=
avisynth.o
OBJS-$(CONFIG_AVM2_MUXER)
+=
swfenc.o
swf.o
OBJS-$(CONFIG_AVR_DEMUXER)
+=
avr.o
rawdec.o
pcm.o
OBJS-$(CONFIG_AVR_DEMUXER)
+=
avr.o
pcm.o
OBJS-$(CONFIG_AVS_DEMUXER)
+=
avs.o
vocdec.o
voc.o
OBJS-$(CONFIG_BETHSOFTVID_DEMUXER)
+=
bethsoftvid.o
OBJS-$(CONFIG_BFI_DEMUXER)
+=
bfi.o
...
...
libavformat/avr.c
View file @
15ab0393
...
...
@@ -22,7 +22,6 @@
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "internal.h"
#include "rawdec.h"
#include "pcm.h"
static
int
avr_probe
(
AVProbeData
*
p
)
...
...
@@ -83,6 +82,8 @@ static int avr_read_header(AVFormatContext *s)
return
AVERROR_PATCHWELCOME
;
}
st
->
codec
->
block_align
=
bps
*
st
->
codec
->
channels
/
8
;
avpriv_set_pts_info
(
st
,
64
,
1
,
st
->
codec
->
sample_rate
);
return
0
;
}
...
...
@@ -92,7 +93,7 @@ AVInputFormat ff_avr_demuxer = {
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"AVR (Audio Visual Research)"
),
.
read_probe
=
avr_probe
,
.
read_header
=
avr_read_header
,
.
read_packet
=
ff_
raw_read_partial
_packet
,
.
read_packet
=
ff_
pcm_read
_packet
,
.
read_seek
=
ff_pcm_read_seek
,
.
extensions
=
"avr"
,
.
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