Missing io.Copy() error checking
You should check for errors on this io.Copy. It can fail in so many ways. At least, verify the written size matches the original file size.
You should check for errors on this io.Copy. It can fail in so many ways. At least, verify the written size matches the original file size.
VideoLAN code repository instance