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 01:54:02 +0000 (03:54 +0200)
commitc8a11014b673ebc6946db6fcd20009d330c57c48
tree711c8a84b09da88805bfeb46f778e5c1a2a08299
parentad60b3b1811f6fce23baf8cf081f469244004aae
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>
ffmpeg.c