[FFmpeg-devel] Patch to libavc/opus to create extradata if missing

Jonathan Baudanza jon at jonb.org
Mon Dec 28 08:52:26 EET 2020


This patch to libavcodec/opus.c will create the opus extradata if it is missing. This is required when muxing opus data from an RTP demuxer. Without this patch, the opux muxer will fail with a "No extradata present" error. 

This issue was first reported by Juan Navarro here: http://www.ffmpeg-archive.org/Unable-to-record-VP8-Opus-from-RTP-SDP-td4689046.html

This patch was first created by Carl Eugen Hoyos, but didn't land because resulting opus files wouldn't play in VLC. The reason is because the opus headers in the original patch were too large. This patch update's Carl's original patch to limit the size of the extradata to 19 bytes.
       
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lavc-opus-Create-extradata-if-it-is-missing.patch
Type: application/octet-stream
Size: 2051 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20201227/e2466d0e/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-lavc-opus-Opus-extradata-should-only-be-19-bytes.patch
Type: application/octet-stream
Size: 1595 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20201227/e2466d0e/attachment-0001.obj>


More information about the ffmpeg-devel mailing list