[FFmpeg-devel] [PATCH 1/2] lavc/tta: Use a safer check for encrypted streams
Michael Niedermayer
michaelni at gmx.at
Sun Feb 17 00:42:19 CET 2013
On Sat, Feb 16, 2013 at 01:12:30AM -0300, James Almer wrote:
> The user can provide a password even when the stream
> is not encrypted, so check the value of s->format
> instead of s->pass in ttafilter_init().
>
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
> libavcodec/tta.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavcodec/tta.c b/libavcodec/tta.c
> index bcbe037..4240946 100644
> --- a/libavcodec/tta.c
> +++ b/libavcodec/tta.c
> @@ -99,7 +99,7 @@ static const int32_t ttafilter_configs[4] = {
>
> static void ttafilter_init(TTAContext *s, TTAFilter *c, int32_t shift) {
> memset(c, 0, sizeof(TTAFilter));
> - if (s->pass) {
> + if (s->format == FORMAT_ENCRYPTED) {
applied
thanks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Opposition brings concord. Out of discord comes the fairest harmony.
-- Heraclitus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130217/c58aa763/attachment.asc>
More information about the ffmpeg-devel
mailing list