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
3f8ee30e
Commit
3f8ee30e
authored
Dec 28, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmfenc: use ff_raw_write_packet()
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
f18d2137
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
+3
-9
Makefile
libavformat/Makefile
+1
-1
mmf.c
libavformat/mmf.c
+2
-8
No files found.
libavformat/Makefile
View file @
3f8ee30e
...
...
@@ -197,7 +197,7 @@ OBJS-$(CONFIG_MLP_DEMUXER) += rawdec.o
OBJS-$(CONFIG_MLP_MUXER)
+=
rawenc.o
OBJS-$(CONFIG_MM_DEMUXER)
+=
mm.o
OBJS-$(CONFIG_MMF_DEMUXER)
+=
mmf.o
OBJS-$(CONFIG_MMF_MUXER)
+=
mmf.o
OBJS-$(CONFIG_MMF_MUXER)
+=
mmf.o
rawenc.o
OBJS-$(CONFIG_MOV_DEMUXER)
+=
mov.o
isom.o
mov_chan.o
OBJS-$(CONFIG_MOV_MUXER)
+=
movenc.o
isom.o
avc.o
\
movenchint.o
rtpenc_chain.o
\
...
...
libavformat/mmf.c
View file @
3f8ee30e
...
...
@@ -24,6 +24,7 @@
#include "internal.h"
#include "avio_internal.h"
#include "pcm.h"
#include "rawenc.h"
#include "riff.h"
typedef
struct
{
...
...
@@ -110,13 +111,6 @@ static int mmf_write_header(AVFormatContext *s)
return
0
;
}
static
int
mmf_write_packet
(
AVFormatContext
*
s
,
AVPacket
*
pkt
)
{
AVIOContext
*
pb
=
s
->
pb
;
avio_write
(
pb
,
pkt
->
data
,
pkt
->
size
);
return
0
;
}
/* Write a variable-length symbol */
static
void
put_varlength
(
AVIOContext
*
pb
,
int
val
)
{
...
...
@@ -304,7 +298,7 @@ AVOutputFormat ff_mmf_muxer = {
.
audio_codec
=
AV_CODEC_ID_ADPCM_YAMAHA
,
.
video_codec
=
AV_CODEC_ID_NONE
,
.
write_header
=
mmf_write_header
,
.
write_packet
=
mmf
_write_packet
,
.
write_packet
=
ff_raw
_write_packet
,
.
write_trailer
=
mmf_write_trailer
,
};
#endif
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