lavc/tta: Use a safer check for encrypted streams
authorJames Almer <jamrial@gmail.com>
Sat, 16 Feb 2013 04:12:30 +0000 (01:12 -0300)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 16 Feb 2013 23:34:38 +0000 (00:34 +0100)
commit2e988fd689642899927707a084bf40dc1326dc90
tree253b85e7ace5d700e3a1e3974bb7f675e522a5bc
parent1d6f6ff4d9faf309b1ea38dc11b38c90b72b03fd
lavc/tta: Use a safer check for encrypted streams

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@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/tta.c