add seek flags. not actually work now
avresample support by mapping to swresample
fix a wrong resample macro