hevc/rext: add partial support for 4:4:4
hevc/main: fix exectuable and mem leaks