hevc: return meaningful error codes.
hevc: remove pointless casts from av_malloc return value
hevc: remove pointless sizeof([u]int8_t)

Those are 1 by definition.
hevc: reformat pic_arrays_init()