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
8ad010a7
Commit
8ad010a7
authored
Dec 28, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
soxenc: use ff_raw_write_packet()
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
a4b62f36
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
+3
-9
Makefile
libavformat/Makefile
+1
-1
soxenc.c
libavformat/soxenc.c
+2
-8
No files found.
libavformat/Makefile
View file @
8ad010a7
...
...
@@ -338,7 +338,7 @@ OBJS-$(CONFIG_SMOOTHSTREAMING_MUXER) += smoothstreamingenc.o isom.o
OBJS-$(CONFIG_SMUSH_DEMUXER)
+=
smush.o
OBJS-$(CONFIG_SOL_DEMUXER)
+=
sol.o
pcm.o
OBJS-$(CONFIG_SOX_DEMUXER)
+=
soxdec.o
pcm.o
OBJS-$(CONFIG_SOX_MUXER)
+=
soxenc.o
OBJS-$(CONFIG_SOX_MUXER)
+=
soxenc.o
rawenc.o
OBJS-$(CONFIG_SPDIF_DEMUXER)
+=
spdif.o
spdifdec.o
OBJS-$(CONFIG_SPDIF_MUXER)
+=
spdif.o
spdifenc.o
OBJS-$(CONFIG_SRT_DEMUXER)
+=
srtdec.o
...
...
libavformat/soxenc.c
View file @
8ad010a7
...
...
@@ -34,6 +34,7 @@
#include "libavutil/dict.h"
#include "avformat.h"
#include "avio_internal.h"
#include "rawenc.h"
#include "sox.h"
typedef
struct
{
...
...
@@ -84,13 +85,6 @@ static int sox_write_header(AVFormatContext *s)
return
0
;
}
static
int
sox_write_packet
(
AVFormatContext
*
s
,
AVPacket
*
pkt
)
{
AVIOContext
*
pb
=
s
->
pb
;
avio_write
(
pb
,
pkt
->
data
,
pkt
->
size
);
return
0
;
}
static
int
sox_write_trailer
(
AVFormatContext
*
s
)
{
SoXContext
*
sox
=
s
->
priv_data
;
...
...
@@ -122,6 +116,6 @@ AVOutputFormat ff_sox_muxer = {
.
audio_codec
=
AV_CODEC_ID_PCM_S32LE
,
.
video_codec
=
AV_CODEC_ID_NONE
,
.
write_header
=
sox_write_header
,
.
write_packet
=
sox
_write_packet
,
.
write_packet
=
ff_raw
_write_packet
,
.
write_trailer
=
sox_write_trailer
,
};
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