porting ffplay to SDL2