optimized partial idct

Conflicts:
	libavcodec/hevc_cabac.c
hevc: fix key_frame as an IRAP