[libav-devel] [PATCH] avresample_buffer() input buffer should reassure caller read only.

Kip Warner kip at thevertigo.com
Fri Dec 11 01:50:37 CET 2015

Hey folks,

Please find enclosed a patch to ensure avresample_buffer() caller's
input buffer will not be modified.

Although the task of patching all of libav for const correctness is
beyond my time at present, the attached is small patch to at least
allow libav client code to compile cleanly when calling
avresample_buffer() with an input buffer it needs to be reassured will
not be modified.

From what I could see, the changes needed were only minor syntactical,
so I hope there wasn't something more fundamental / deeper why
avresample_convert() could potentially need to tamper with the input
buffer (e.g. dependent ff_audio_data_init's read_only parameter?).



Kip Warner -- Senior Software Engineer
OpenPGP encrypted/signed mail preferred

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avresample_buffer-input-buffer-should-reassure-calle.patch
Type: text/x-patch
Size: 3536 bytes
Desc: not available
URL: <http://lists.libav.org/pipermail/libav-devel/attachments/20151210/4bfbfd7f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.libav.org/pipermail/libav-devel/attachments/20151210/4bfbfd7f/attachment.sig>

More information about the libav-devel mailing list