diff options
| author | Andreas Rheinhardt <[email protected]> | 2020-04-02 18:05:15 +0200 | 
|---|---|---|
| committer | Andreas Rheinhardt <[email protected]> | 2020-04-03 17:51:18 +0200 | 
| commit | ab502fab6a78fcefb7f4aff18fcc25d92cb0ce04 (patch) | |
| tree | f69e14d89c6e1e90cf8bd8b78d5bff4290e38d08 /libavformat/ilbc.c | |
| parent | dc67c0f1809a6b0a6cfb877f556c133d35d60c2b (diff) | |
avformat/ilbc: Don't reimplement ff_raw_write_packet
Reviewed-by: Michael Niedermayer <[email protected]>
Signed-off-by: Andreas Rheinhardt <[email protected]>
Diffstat (limited to 'libavformat/ilbc.c')
| -rw-r--r-- | libavformat/ilbc.c | 9 | 
1 files changed, 2 insertions, 7 deletions
diff --git a/libavformat/ilbc.c b/libavformat/ilbc.c index d41027174d..c778f5a5af 100644 --- a/libavformat/ilbc.c +++ b/libavformat/ilbc.c @@ -21,6 +21,7 @@  #include "avformat.h"  #include "internal.h" +#include "rawenc.h"  static const char mode20_header[] = "#!iLBC20\n";  static const char mode30_header[] = "#!iLBC30\n"; @@ -52,12 +53,6 @@ static int ilbc_write_header(AVFormatContext *s)      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)  {      // Only check for "#!iLBC" which matches both formats @@ -133,6 +128,6 @@ AVOutputFormat ff_ilbc_muxer = {      .extensions   = "lbc",      .audio_codec  = AV_CODEC_ID_ILBC,      .write_header = ilbc_write_header, -    .write_packet = ilbc_write_packet, +    .write_packet = ff_raw_write_packet,      .flags        = AVFMT_NOTIMESTAMPS,  };  | 
