[FFmpeg-devel] [PATCH v5 2/2] libavformat: Add DFPWM raw format

Jack Bruienne jackbruienne at gmail.com
Sun Feb 27 23:37:12 EET 2022


This patch builds on my previous DFPWM codec patch, adding a raw
audio format to be able to read/write the raw files that are most commonly
used (as no other container format supports it yet).

The muxers are mostly copied from the PCM demuxer and the raw muxers, as
DFPWM is typically stored as raw data.

Note on the channels argument: The -ac argument can only be used as
an alias if -f dfpwm is passed. If missing, -ac has no effect. The
-channels argument will work regardless of the presence of -f.

Please see the previous patch for more information on DFPWM.

Changes since v4:
Fixed descriptions of formats.

Changes since v2/v3:
Removed unused MIME parsing code, and added channels option.

Signed-off-by: Jack Bruienne <jackbruienne at gmail.com>
---
  Changelog                 |  2 +-
  MAINTAINERS               |  1 +
  doc/general_contents.texi |  1 +
  libavformat/Makefile      |  2 +
  libavformat/allformats.c  |  2 +
  libavformat/dfpwmdec.c    | 82 +++++++++++++++++++++++++++++++++++++++
  libavformat/rawenc.c      | 13 +++++++
  libavformat/version.h     |  4 +-
  8 files changed, 104 insertions(+), 3 deletions(-)
  create mode 100644 libavformat/dfpwmdec.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: v5-0002-libavformat-Add-DFPWM-raw-format.patch
Type: text/x-patch
Size: 7090 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20220227/57045e73/attachment.bin>


More information about the ffmpeg-devel mailing list