libstagefright: Check for duration > 0 to avoid divide-by-zero exception

Change-Id: I58ccacbf7ede892dff9626715162ea7b1f2ddbc6
1 file changed