[FFmpeg-devel] [PATCH 2/2] lavc/samidec: support Hulu subtitle encryption
Michael Niedermayer
michael at niedermayer.cc
Sat Oct 17 21:14:16 CEST 2015
On Sat, Oct 10, 2015 at 11:05:50PM -0500, Rodger Combs wrote:
> hex_to_data should probably move to lavu before this is merged.
>
> This is probably a good case for sub_charenc to run _after_ the decoder.
>
> I could see an argument that this should go in the demuxer instead. Thoughts?
> ---
> libavcodec/samidec.c | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 78 insertions(+)
[...]
> @@ -158,6 +207,18 @@ static av_cold int sami_init(AVCodecContext *avctx)
> av_bprint_init(&sami->encoded_source, 0, 2048);
> av_bprint_init(&sami->encoded_content, 0, 2048);
> av_bprint_init(&sami->full, 0, 2048);
> +
> + if (sami->key && sami->iv && *sami->iv && !sami->iv_size)
> + sami->iv_size = strlen(sami->iv);
> +
> + if (sami->key_size && sami->iv_size) {
> + sami->aes = av_aes_alloc();
> + if (!sami->aes)
> + return ENOMEM;
AVERROR(ENOMEM)
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Democracy is the form of government in which you can choose your dictator
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151017/31c10e6a/attachment.sig>
More information about the ffmpeg-devel
mailing list