Unified · Split
| @@ -21,6 +21,7 @@ · 20 unmodified lines | ||
| 21 | 21 | |
| 22 | 22 | #include "avformat.h" |
| 23 | 23 | #include "internal.h" |
| 24 | +#include "rawenc.h" | |
| 24 | 25 | |
| 25 | 26 | static const char mode20_header[] = "#!iLBC20\n"; |
| 26 | 27 | static const char mode30_header[] = "#!iLBC30\n"; |
| @@ -52,12 +53,6 @@ static int ilbc_write_header(AVFormatContext *s) · 25 unmodified lines | ||
| 52 | 53 | return 0; |
| 53 | 54 | } |
| 54 | 55 | |
| 55 | −static int ilbc_write_packet(AVFormatContext *s, AVPacket *pkt) | |
| 56 | −{ | |
| 57 | − avio_write(s->pb, pkt->data, pkt->size); | |
| 58 | − return 0; | |
| 59 | −} | |
| 60 | − | |
| 61 | 56 | static int ilbc_probe(const AVProbeData *p) |
| 62 | 57 | { |
| 63 | 58 | // Only check for "#!iLBC" which matches both formats |
| @@ -133,6 +128,6 @@ AVOutputFormat ff_ilbc_muxer = { · 69 unmodified lines | ||
| 133 | 128 | .extensions = "lbc", |
| 134 | 129 | .audio_codec = AV_CODEC_ID_ILBC, |
| 135 | 130 | .write_header = ilbc_write_header, |
| 136 | − .write_packet = ilbc_write_packet, | |
| 131 | + .write_packet = ff_raw_write_packet, | |
| 137 | 132 | .flags = AVFMT_NOTIMESTAMPS, |
| 138 | 133 | }; |