Derek Buitenhuis
93629735d7
avformat: Add a protocol blacklisting API
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 years ago
Anton Khirnov
8c0ceafb0f
urlprotocol: receive a list of protocols from the caller
...
This way, the decisions about which protocols are available for use in
any given situations can be delegated to the caller.
9 years ago
Anton Khirnov
2758cdedfb
lavf: reorganize URLProtocols
...
Instead of a linked list constructed at av_register_all(), store them
in a constant array of pointers.
Since no registration is necessary now, this removes some global state
from lavf. This will also allow the urlprotocol layer caller to limit
the available protocols in a simple and flexible way in the following
commits.
9 years ago
Michael Niedermayer
fe3fed0b14
Update demuxers and protocols for protocol whitelist support
...
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Diego Biurrun
daf8cf358a
avformat: Don't anonymously typedef structs
10 years ago
Michael Niedermayer
2d0117f816
avformat/crypto: fix key vs iv typo
...
Fixes Ticket 4167
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
24e7e0237b
avformat/crypto: Use av_memdup()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Christian Suloway
00d4013d9f
avformat/crypto: added encryption
...
Signed-off-by: Christian Suloway <csuloway@globaleagleent.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Thilo Borgmann
d814a839ac
Reinstate proper FFmpeg license for all files.
11 years ago
Martin Storsjö
e002e3291e
Use the new aes/md5/sha/tree allocation functions
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Duncan Salerno
f3f35f7430
crypto should allow passing of options to the underlying protocol via the url_open2 interface
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Martin Storsjö
12c8912de2
crypto: Remove a stray double space
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Anton Khirnov
ddffc2fdc3
avio: add support for passing options to protocols.
...
Not used anywhere yet, support for passing options from avio_open() will
follow.
13 years ago
Martin Storsjö
6f1b7b3944
avio: Add an AVIOInterruptCB parameter to ffurl_open/ffurl_alloc
...
Change all uses of these function to pass the relevant
callback on.
13 years ago
Anton Khirnov
dc86ca1ab5
crypto: add decoding flag to options.
13 years ago
Martin Storsjö
eaa8c1f9fe
crypto: Don't manually free memory allocated via AVOptions
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Anton Khirnov
145f741e11
AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*
13 years ago
Etienne Buira
c8d0d8bc76
crypto: Use av_freep instead of av_free
...
This fixes a potential double free.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Michael Niedermayer
c1ad93c08c
Revert "crypto: fix potential double free"
...
This reverts commit 7d89f7cbf3
.
Revert at authors request, and its buggy missing &
14 years ago
Etienne Buira
a71bcd1a7f
crypto: Use av_freep instead of av_free
...
This fixes a potential double free.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Etienne Buira
7d89f7cbf3
crypto: fix potential double free
14 years ago
Anton Khirnov
f0029cbcf6
lavf: use designated initializers for AVClasses.
14 years ago
Anton Khirnov
4a7a1b7def
lavf: use designated initializers for AVClasses.
14 years ago
Martin Storsjö
ac9cf2e5c4
crypto: Use av_freep instead of av_free
...
Using av_freep is generally good practice.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
6e4f70a8de
Add a protocol handler for AES CBC decryption with PKCS7 padding
...
This can later be extended to support other AES bit sizes,
encryption, other crypto algorithms, reading the key from a URL, etc.
In order to use it, the key and initialization vector has to be
passed via AVOptions. Since such options can't be passed to
protocols from the command line, the protocol is currently
only for libavformat internal use.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago