mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-23 04:24:35 +02:00
avformat/ilbc: Don't reimplement ff_raw_write_packet
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
dc67c0f180
commit
ab502fab6a
@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
#include "avformat.h"
|
#include "avformat.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
#include "rawenc.h"
|
||||||
|
|
||||||
static const char mode20_header[] = "#!iLBC20\n";
|
static const char mode20_header[] = "#!iLBC20\n";
|
||||||
static const char mode30_header[] = "#!iLBC30\n";
|
static const char mode30_header[] = "#!iLBC30\n";
|
||||||
@ -52,12 +53,6 @@ static int ilbc_write_header(AVFormatContext *s)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ilbc_write_packet(AVFormatContext *s, AVPacket *pkt)
|
|
||||||
{
|
|
||||||
avio_write(s->pb, pkt->data, pkt->size);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int ilbc_probe(const AVProbeData *p)
|
static int ilbc_probe(const AVProbeData *p)
|
||||||
{
|
{
|
||||||
// Only check for "#!iLBC" which matches both formats
|
// Only check for "#!iLBC" which matches both formats
|
||||||
@ -133,6 +128,6 @@ AVOutputFormat ff_ilbc_muxer = {
|
|||||||
.extensions = "lbc",
|
.extensions = "lbc",
|
||||||
.audio_codec = AV_CODEC_ID_ILBC,
|
.audio_codec = AV_CODEC_ID_ILBC,
|
||||||
.write_header = ilbc_write_header,
|
.write_header = ilbc_write_header,
|
||||||
.write_packet = ilbc_write_packet,
|
.write_packet = ff_raw_write_packet,
|
||||||
.flags = AVFMT_NOTIMESTAMPS,
|
.flags = AVFMT_NOTIMESTAMPS,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user