ffmpeg: use isatty() before messing with the terminal state
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 5 Jun 2012 17:58:03 +0000 (19:58 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 6 Jun 2012 22:55:26 +0000 (00:55 +0200)
commitdc85ca0945c902695815fe9a32aeb383236a19b6
tree3153f94bfc647fd7640e1f4c3ed719ab576eeb94
parenta53ca16ae95f30173d1ad6d085045de0f6db0672
ffmpeg: use isatty() before messing with the terminal state

This fixes terminal messup in case of crashes (like in make fate)

Reviewed-by: Fran├žois Revol <revol@free.fr>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit c8a11014b673ebc6946db6fcd20009d330c57c48)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c