Fix potential null pointer dereference
remove unused assignment
check return code of to_alsa_format
[http] fix read when preview mode is used
[mp4] check return code when parsing trak atom